本文整理汇总了Java中ic2.api.energy.tile.IEnergyEmitter类的典型用法代码示例。如果您正苦于以下问题:Java IEnergyEmitter类的具体用法?Java IEnergyEmitter怎么用?Java IEnergyEmitter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IEnergyEmitter类属于ic2.api.energy.tile包,在下文中一共展示了IEnergyEmitter类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter iEnergyEmitter, EnumFacing enumFacing) {
return enumFacing == EnumFacing.UP;
}
示例2: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter emitter, EnumFacing direction) {
return true;
}
示例3: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
@Optional.Method(modid = "ic2")
public boolean acceptsEnergyFrom(IEnergyEmitter emitter, EnumFacing side) {
return true;
}
示例4: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Optional.Method(modid = "IC2API")
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter emitter, EnumFacing side) {
return MetaphaserEU.INSTANCE.acceptsEnergyFrom(this, emitter, side);
}
示例5: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter iEnergyEmitter, EnumFacing enumFacing) {
return enumFacing != this.facing;
}
示例6: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter iEnergyEmitter, EnumFacing enumFacing) {
return true;
}
示例7: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter iEnergyEmitter, EnumFacing enumFacing) {
return enumFacing != EnumFacing.UP && super.acceptsEnergyFrom(iEnergyEmitter, enumFacing);
}
示例8: getAdjacentPowerConnections
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
public static TileEntity[] getAdjacentPowerConnections(TileEntity tile)
/* */ {
/* 891 */ TileEntity[] adjacentConnections = new TileEntity[6];
/* */
/* 893 */ boolean isMekLoaded = NetworkConfigHandler.isMekanismLoaded();
/* 894 */ boolean isTELoaded = NetworkConfigHandler.isThermalExpansionLoaded();
/* 895 */ boolean isIC2Loaded = NetworkConfigHandler.isIndustrialCraft2Loaded();
/* 896 */ boolean isBCLoaded = NetworkConfigHandler.isBuildcraftLoaded();
/* */
/* 898 */ BlockVec3 thisVec = new BlockVec3(tile);
/* 899 */ for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS)
/* */ {
/* 901 */ TileEntity tileEntity = thisVec.getTileEntityOnSide(tile.field_70331_k, direction);
/* */
/* 903 */ if ((tileEntity instanceof IConnector))
/* */ {
/* 905 */ if (((IConnector)tileEntity).canConnect(direction.getOpposite(), NetworkType.POWER))
/* */ {
/* 907 */ adjacentConnections[direction.ordinal()] = tileEntity;
/* */ }
/* */ }
/* 910 */ else if ((isMekLoaded) && ((tileEntity instanceof IStrictEnergyAcceptor)))
/* */ {
/* 912 */ if (((IStrictEnergyAcceptor)tileEntity).canReceiveEnergy(direction.getOpposite()))
/* */ {
/* 914 */ adjacentConnections[direction.ordinal()] = tileEntity;
/* */ }
/* */ }
/* 917 */ else if ((isTELoaded) && ((tileEntity instanceof IEnergyHandler)))
/* */ {
/* 919 */ if (((IEnergyHandler)tileEntity).canInterface(direction.getOpposite()))
/* */ {
/* 921 */ adjacentConnections[direction.ordinal()] = tileEntity;
/* */ }
/* */ }
/* 924 */ else if ((isIC2Loaded) && ((tileEntity instanceof IEnergyTile)))
/* */ {
/* 926 */ if ((tileEntity instanceof IEnergyAcceptor))
/* */ {
/* 928 */ if (((IEnergyAcceptor)tileEntity).acceptsEnergyFrom(tile, direction.getOpposite()))
/* */ {
/* 930 */ adjacentConnections[direction.ordinal()] = tileEntity;
/* 931 */ continue;
/* */ }
/* */ }
/* */
/* 935 */ if ((tileEntity instanceof IEnergyEmitter))
/* */ {
/* 937 */ if (((IEnergyEmitter)tileEntity).emitsEnergyTo(tileEntity, direction.getOpposite()))
/* */ {
/* 939 */ adjacentConnections[direction.ordinal()] = tileEntity;
/* 940 */ continue;
/* */ }
/* */ }
/* */
/* 944 */ adjacentConnections[direction.ordinal()] = tileEntity;
/* */ }
/* 946 */ else if ((isBCLoaded) && ((tileEntity instanceof IPowerReceptor)))
/* */ {
/* 948 */ if (((IPowerReceptor)tileEntity).getPowerReceiver(direction.getOpposite()) != null)
/* */ {
/* 950 */ adjacentConnections[direction.ordinal()] = tileEntity;
/* */ }
/* */ }
/* */ }
/* */
/* 955 */ return adjacentConnections;
/* */ }
示例9: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Optional.Method(modid = "IC2")
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter iEnergyEmitter, EnumFacing forgeDirection) {
return true;
}
示例10: acceptsEnergyFrom
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter emitter, EnumFacing side) {
return true;
}
示例11: getAdjacentConnections
import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public TileEntity[] getAdjacentConnections()
{
if (this.adjacentConnections == null)
{
this.adjacentConnections = new TileEntity[6];
for (byte i = 0; i < 6; i++)
{
ForgeDirection side = ForgeDirection.getOrientation(i);
TileEntity tileEntity = VectorHelper.getTileEntityFromSide(this.worldObj, new Vector3(this), side);
if (tileEntity instanceof IConnector)
{
if (((IConnector) tileEntity).canConnect(side.getOpposite()))
{
this.adjacentConnections[i] = tileEntity;
}
}
else if (Compatibility.isIndustrialCraft2Loaded() && tileEntity instanceof IEnergyTile)
{
if (tileEntity instanceof IEnergyAcceptor)
{
if (((IEnergyAcceptor) tileEntity).acceptsEnergyFrom(this, side.getOpposite()))
{
this.adjacentConnections[i] = tileEntity;
continue;
}
}
if (tileEntity instanceof IEnergyEmitter)
{
if (((IEnergyEmitter) tileEntity).emitsEnergyTo(tileEntity, side.getOpposite()))
{
this.adjacentConnections[i] = tileEntity;
continue;
}
}
this.adjacentConnections[i] = tileEntity;
}
else if (Compatibility.isBuildcraftLoaded() && tileEntity instanceof IPowerReceptor)
{
if (((IPowerReceptor) tileEntity).getPowerReceiver(side.getOpposite()) != null)
{
this.adjacentConnections[i] = tileEntity;
}
}
}
}
return this.adjacentConnections;
}