Search in sources :

Example 1 with BalloonBurnerTileEntity

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;
}
Also used : BalloonBurnerTileEntity(ValkyrienWarfareControl.TileEntity.BalloonBurnerTileEntity) TileEntity(net.minecraft.tileentity.TileEntity) IBlockState(net.minecraft.block.state.IBlockState) PhysicsWrapperEntity(ValkyrienWarfareBase.PhysicsManagement.PhysicsWrapperEntity) BalloonBurnerTileEntity(ValkyrienWarfareControl.TileEntity.BalloonBurnerTileEntity) PhysicsObject(ValkyrienWarfareBase.PhysicsManagement.PhysicsObject)

Aggregations

PhysicsObject (ValkyrienWarfareBase.PhysicsManagement.PhysicsObject)1 PhysicsWrapperEntity (ValkyrienWarfareBase.PhysicsManagement.PhysicsWrapperEntity)1 BalloonBurnerTileEntity (ValkyrienWarfareControl.TileEntity.BalloonBurnerTileEntity)1 IBlockState (net.minecraft.block.state.IBlockState)1 TileEntity (net.minecraft.tileentity.TileEntity)1