• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java IEnergyEmitter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:5,代码来源:TileEntityElectricCompressor.java


示例2: acceptsEnergyFrom

import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter emitter, EnumFacing direction) {
	return true;
}
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:5,代码来源:BasicSink.java


示例3: acceptsEnergyFrom

import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
@Optional.Method(modid = "ic2")
public boolean acceptsEnergyFrom(IEnergyEmitter emitter, EnumFacing side) {
    return true;
}
 
开发者ID:HellFirePvP,项目名称:ModularMachinery,代码行数:6,代码来源:TileEnergyInputHatch.java


示例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);
}
 
开发者ID:Lordmau5,项目名称:FFS,代码行数:6,代码来源:TileEntityMetaphaser.java


示例5: acceptsEnergyFrom

import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter iEnergyEmitter, EnumFacing enumFacing) {
    return enumFacing != this.facing;
}
 
开发者ID:GoodTimeStudio,项目名称:Production-Line,代码行数:5,代码来源:TileEUStorage.java


示例6: acceptsEnergyFrom

import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter iEnergyEmitter, EnumFacing enumFacing) {
    return true;
}
 
开发者ID:GoodTimeStudio,项目名称:Production-Line,代码行数:5,代码来源:TileElectricContainer.java


示例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);
}
 
开发者ID:GoodTimeStudio,项目名称:Production-Line,代码行数:5,代码来源:TileCarbonizeFurnace.java


示例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;
/*     */   }
 
开发者ID:Nathor40000,项目名称:Connection,代码行数:69,代码来源:WorldUtil.java


示例9: acceptsEnergyFrom

import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Optional.Method(modid = "IC2")
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter iEnergyEmitter, EnumFacing forgeDirection) {
    return true;
}
 
开发者ID:Keridos,项目名称:FloodLights,代码行数:6,代码来源:TileEntityFLElectric.java


示例10: acceptsEnergyFrom

import ic2.api.energy.tile.IEnergyEmitter; //导入依赖的package包/类
@Override
public boolean acceptsEnergyFrom(IEnergyEmitter emitter, EnumFacing side) {
	return true;
}
 
开发者ID:Aroma1997,项目名称:BetterChests,代码行数:5,代码来源:BlockHandler.java


示例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;
}
 
开发者ID:tterrag1098,项目名称:SimpleTransmutations,代码行数:54,代码来源:TileEntityUniversalConductor.java



注:本文中的ic2.api.energy.tile.IEnergyEmitter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ICProjectDescription类代码示例发布时间:2022-05-22
下一篇:
Java HATestUtil类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap