use of ValkyrienWarfareControl.TileEntity.BalloonBurnerTileEntity in project Valkyrien-Warfare-Revamped by ValkyrienWarfare.
the class BlockBalloonBurner method getTileEntity.
private BalloonBurnerTileEntity getTileEntity(World world, BlockPos pos, IBlockState state, Entity shipEntity) {
PhysicsWrapperEntity wrapper = (PhysicsWrapperEntity) shipEntity;
PhysicsObject obj = wrapper.wrapping;
IBlockState controllerState = obj.VKChunkCache.getBlockState(pos);
TileEntity worldTile = obj.VKChunkCache.getTileEntity(pos);
if (worldTile == null) {
return null;
}
if (worldTile instanceof BalloonBurnerTileEntity) {
BalloonBurnerTileEntity burnerTile = (BalloonBurnerTileEntity) worldTile;
return burnerTile;
}
return null;
}
Aggregations