Class BlockTrapDoor

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockTrapDoor

public class BlockTrapDoor extends Block
  • Field Details

  • Constructor Details

    • BlockTrapDoor

      public BlockTrapDoor(int blockID)
  • Method Details

    • isOpaqueCube

      public boolean isOpaqueCube()
      Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
      Overrides:
      isOpaqueCube in class Block
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
      Overrides:
      renderAsNormalBlock in class Block
    • getRenderType

      public int getRenderType()
      The type of render function that is called for this block
      Overrides:
      getRenderType 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
    • isTrapdoorOpen

      public static boolean isTrapdoorOpen(int par0)
    • onBlockActivated

      public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
      Description copied from class: Block
      Called upon block activation (right click on the block.)
      Overrides:
      onBlockActivated in class Block
    • canPlaceBlockOnSide

      public boolean canPlaceBlockOnSide(World world, int x, int y, int z, int side)
      Description copied from class: Block
      checks to see if you can place this block can be placed on that side of a block: BlockLever overrides
      Overrides:
      canPlaceBlockOnSide in class Block
    • onBlockPlaced

      public int onBlockPlaced(World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int metadata)
      Description copied from class: Block
      Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata
      Overrides:
      onBlockPlaced in class Block
    • onBlockPlacedBy

      public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack itemStack)
      Description copied from class: Block
      Called when the block is placed in the world. // +++START EDIT+++ FCNOTE: Called AFTER the block is placed, unlike onBlockPlaced() // ---END EDIT---
      Overrides:
      onBlockPlacedBy in class Block
    • isBlockClimbable

      public boolean isBlockClimbable(World world, int x, int y, int z)
      Overrides:
      isBlockClimbable in class Block
    • getWeightOnPathBlocked

      public int getWeightOnPathBlocked(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      getWeightOnPathBlocked in class Block
    • canPathThroughBlock

      public boolean canPathThroughBlock(IBlockAccess blockAccess, int x, int y, int z, Entity entity, PathFinder pathFinder)
      Overrides:
      canPathThroughBlock in class Block
    • isBreakableBarricade

      public boolean isBreakableBarricade(World world, int x, int y, int z, boolean advancedBreaker)
      Overrides:
      isBreakableBarricade in class Block
    • isBreakableBarricadeOpen

      public boolean isBreakableBarricadeOpen(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      isBreakableBarricadeOpen in class Block
    • getBlocksMovement

      public boolean getBlocksMovement(IBlockAccess blockAccess, int x, int y, int z)
      Description copied from class: Block
      FCNOTE: This is misnamed and returns true if the block *doesn't* block movement
      Overrides:
      getBlocksMovement in class Block
    • getHarvestToolLevel

      public int getHarvestToolLevel(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      getHarvestToolLevel in class Block
    • dropComponentItemsOnBadBreak

      public boolean dropComponentItemsOnBadBreak(World world, int i, int j, int k, int iMetadata, float fChanceOfDrop)
      Description copied from class: Block
      Called by explosions and improper tool use. Should return true if the block processes its own drops through this method, false otherwise Note that the block may no longer be at the specified position when this is called
      Overrides:
      dropComponentItemsOnBadBreak in class Block
    • getCollisionBoundingBoxFromPool

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
      Overrides:
      getCollisionBoundingBoxFromPool in class Block
    • setBlockBoundsBasedOnState

      public void setBlockBoundsBasedOnState(IBlockAccess blockAccess, int x, int y, int z)
      Description copied from class: Block
      FCNOTE: DEPRECATED
      Overrides:
      setBlockBoundsBasedOnState in class Block
    • setBlockBoundsForItemRender

      public void setBlockBoundsForItemRender()
      Description copied from class: Block
      Sets the block's bounds for rendering it as an item
      Overrides:
      setBlockBoundsForItemRender in class Block
    • getBlockBoundsFromPoolBasedOnState

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      getBlockBoundsFromPoolBasedOnState in class Block
    • getCanGrassGrowUnderBlock

      public boolean getCanGrassGrowUnderBlock(World world, int x, int y, int z, boolean var5)
      Overrides:
      getCanGrassGrowUnderBlock in class Block
    • hasLargeCenterHardPointToFacing

      public boolean hasLargeCenterHardPointToFacing(IBlockAccess blockAccess, int x, int y, int z, int facing, boolean var6)
      Description copied from class: Block
      large attachment points that can support a full block width
      Overrides:
      hasLargeCenterHardPointToFacing in class Block
    • getHopperFilterIcon

      @Environment(CLIENT) public Icon getHopperFilterIcon()
      Overrides:
      getHopperFilterIcon in class Block
    • getSelectedBoundingBoxFromPool

      @Environment(CLIENT) public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z)
      Overrides:
      getSelectedBoundingBoxFromPool in class Block
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int neighborX, int neighborY, int neighborZ, int side)
      Overrides:
      shouldSideBeRendered in class Block
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderBlocks, int x, int y, int z)
      Overrides:
      renderBlock in class Block