Class BlockNote

All Implemented Interfaces:
ITileEntityProvider

public class BlockNote extends BlockContainer
  • Constructor Details

    • BlockNote

      public BlockNote(int par1)
  • Method Details

    • onNeighborBlockChange

      public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
      Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID
      Overrides:
      onNeighborBlockChange in class Block
    • onBlockActivated

      public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
      Called upon block activation (right click on the block.)
      Overrides:
      onBlockActivated in class Block
    • onBlockClicked

      public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
      Called when the block is clicked by a player. Args: x, y, z, entityPlayer
      Overrides:
      onBlockClicked in class Block
    • createNewTileEntity

      public TileEntity createNewTileEntity(World par1World)
      Returns a new instance of a block's tile entity class. Called on placing the 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 BlockContainer
    • isIncineratedInCrucible

      public boolean isIncineratedInCrucible()
      Overrides:
      isIncineratedInCrucible in class Block