Search in sources :

Example 6 with TileChaosPylon

use of net.silentchaos512.gems.tile.TileChaosPylon in project SilentGems by SilentChaos512.

the class BlockChaosPylon method breakBlock.

@Override
public void breakBlock(World world, BlockPos pos, IBlockState state) {
    TileEntity tilePylon = world.getTileEntity(pos);
    if (tilePylon != null && tilePylon instanceof TileChaosPylon) {
        InventoryHelper.dropInventoryItems(world, pos, (TileChaosPylon) tilePylon);
        world.updateComparatorOutputLevel(pos, this);
    }
    super.breakBlock(world, pos, state);
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) TileChaosPylon(net.silentchaos512.gems.tile.TileChaosPylon)

Aggregations

TileChaosPylon (net.silentchaos512.gems.tile.TileChaosPylon)4 TileEntity (net.minecraft.tileentity.TileEntity)3 Random (java.util.Random)2 ItemStack (net.minecraft.item.ItemStack)2 EnumHand (net.minecraft.util.EnumHand)2 BlockPos (net.minecraft.util.math.BlockPos)2 ModelPylon (net.silentchaos512.gems.client.render.models.ModelPylon)2 ModelPylonPlates (net.silentchaos512.gems.client.render.models.ModelPylonPlates)2 ContainerQuiver (net.silentchaos512.gems.inventory.ContainerQuiver)2 TileChaosAltar (net.silentchaos512.gems.tile.TileChaosAltar)2 TileMaterialGrader (net.silentchaos512.gems.tile.TileMaterialGrader)2 ContainerBurnerPylon (net.silentchaos512.gems.inventory.ContainerBurnerPylon)1 ContainerChaosAltar (net.silentchaos512.gems.inventory.ContainerChaosAltar)1 ContainerMaterialGrader (net.silentchaos512.gems.inventory.ContainerMaterialGrader)1