Class BlockContainer

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockContainer
All Implemented Interfaces:
ITileEntityProvider
Direct Known Subclasses:
BasketBlock, BlockBeacon, BlockBrewingStand, BlockChest, BlockCommandBlock, BlockDaylightDetector, BlockDispenser, BlockDispenserBlock, BlockEnchantmentTable, BlockEnderChest, BlockEndPortal, BlockFurnace, BlockHopper, BlockJukeBox, BlockMobSpawner, BlockNote, BlockPistonMoving, BlockSign, BlockSkull, CampfireBlock, CementBlock, HopperBlock, InfernalEnchanterBlock, LoomBlock, MillstoneBlock, PlacedToolBlock, PulleyBlock, SoulforgeBlock, TurntableBlock, UnfiredBrickBlock, VaseBlock, VesselBlock

public abstract class BlockContainer extends Block implements ITileEntityProvider
  • Constructor Details

    • BlockContainer

      protected BlockContainer(int par1, Material par2Material)
  • Method Details

    • onBlockAdded

      public void onBlockAdded(World par1World, int par2, int par3, int par4)
      Called whenever the block is added into the world. Args: world, x, y, z
      Overrides:
      onBlockAdded in class Block
    • breakBlock

      public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
      Called on server worlds only when the block has been replaced by a different block ID, or the same block with a different metadata value, but before the new metadata value is set. Args: World, x, y, z, old block ID, old metadata
      Overrides:
      breakBlock in class Block
    • onBlockEventReceived

      public boolean onBlockEventReceived(World par1World, int par2, int par3, int par4, int par5, int par6)
      Called when the block receives a BlockEvent - see World.addBlockEvent. By default, passes it on to the tile entity at this location. Args: world, x, y, z, blockID, EventID, event parameter
      Overrides:
      onBlockEventReceived in class Block