当前位置: 首页>>代码示例>>Java>>正文


Java PoweredEntity类代码示例

本文整理汇总了Java中cyano.poweradvantage.api.PoweredEntity的典型用法代码示例。如果您正苦于以下问题:Java PoweredEntity类的具体用法?Java PoweredEntity怎么用?Java PoweredEntity使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PoweredEntity类属于cyano.poweradvantage.api包,在下文中一共展示了PoweredEntity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
/**
 * Creates a TileEntity for this block when the block is placed into the
 * world.
 *
 * @param world World object
 * @param metaDataValue Block data meta value
 * @return A new TileEntity instance, probably one that extends
 * <b>TileEntitySimplePowerMachine</b>.
 */
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	try {
		return tileEntity.newInstance();
	} catch (InstantiationException | IllegalAccessException e) {
		FMLLog.log(Level.ERROR,e,"Failed to initialize TileEntity instance for block %s",this.getUnlocalizedName());
		return null;
	}
}
 
开发者ID:cyanobacterium,项目名称:PowerAdvantageAPI,代码行数:19,代码来源:BlockTRConverter.java

示例2: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new GrowthChamberControllerTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:ElectricAdvantage,代码行数:5,代码来源:GrowthChamberControllerBlock.java

示例3: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new CoalBoilerTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:CoalBoilerBlock.java

示例4: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new BlastFurnaceTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:BlastFurnaceBlock.java

示例5: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new SteamPumpTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:SteamPumpBlock.java

示例6: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new OilBoilerTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:OilBoilerBlock.java

示例7: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new SteamElevatorTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:SteamElevatorBlock.java

示例8: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new SteamTankTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:SteamTankBlock.java

示例9: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new ElectricBoilerTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:ElectricBoilerBlock.java

示例10: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new GeothermalBoilerTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:GeothermalBoilerBlock.java

示例11: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new SteamStillTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:SteamStillBlock.java

示例12: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new RockCrusherTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:SteamAdvantage,代码行数:5,代码来源:RockCrusherBlock.java

示例13: BlockTRConverter

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
public BlockTRConverter(Material blockMaterial, float hardness, ConduitType energyType, Class<? extends PoweredEntity> tileEntity) {
	super(blockMaterial, hardness, energyType);
	powerAdvantageType = energyType;
	this.tileEntity = tileEntity;
}
 
开发者ID:cyanobacterium,项目名称:PowerAdvantageAPI,代码行数:6,代码来源:BlockTRConverter.java

示例14: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World world, int metaDataValue) {
	return new StillTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:PowerAdvantageAPI,代码行数:5,代码来源:StillBlock.java

示例15: createNewTileEntity

import cyano.poweradvantage.api.PoweredEntity; //导入依赖的package包/类
@Override
public PoweredEntity createNewTileEntity(World w, int m) {
	return new FluidDrainTileEntity();
}
 
开发者ID:cyanobacterium,项目名称:PowerAdvantageAPI,代码行数:5,代码来源:FluidDrainBlock.java


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