Class LadderBlockBase

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.LadderBlockBase
Direct Known Subclasses:
LadderBlock, LadderBlockFlaming, LegacyLadderBlock

public class LadderBlockBase extends Block
  • Field Details

    • LADDER_THICKNESS

      protected static final float LADDER_THICKNESS
      See Also:
    • boxCollision

      protected static final AxisAlignedBB boxCollision
    • LADDER_HORIZONTAL_OFFSET

      protected static final double LADDER_HORIZONTAL_OFFSET
      See Also:
  • Constructor Details

    • LadderBlockBase

      protected LadderBlockBase(int iBlockID)
  • Method Details

    • idDropped

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • getBlockBoundsFromPoolBasedOnState

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getBlockBoundsFromPoolBasedOnState in class Block
    • isOpaqueCube

      public boolean isOpaqueCube()
      Description copied from class: Block
      // +++START EDIT+++ // ---END EDIT--- 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()
      Description copied from class: Block
      If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
      Overrides:
      renderAsNormalBlock in class Block
    • canPlaceBlockAt

      public boolean canPlaceBlockAt(World world, int i, int j, int k)
      Description copied from class: Block
      Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
      Overrides:
      canPlaceBlockAt in class Block
    • onBlockPlaced

      public int onBlockPlaced(World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ, int iMetadata)
      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
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iChangedBlockID)
      Description copied from class: Block
      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 // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      onNeighborBlockChange in class Block
    • getRenderType

      public int getRenderType()
      Description copied from class: Block
      The type of render function that is called for this block
      Overrides:
      getRenderType in class Block
    • isBlockClimbable

      public boolean isBlockClimbable(World world, int i, int j, int k)
      Overrides:
      isBlockClimbable in class Block
    • getFacing

      public int getFacing(int iMetadata)
      Overrides:
      getFacing in class Block
    • setFacing

      public int setFacing(int iMetadata, int iFacing)
      Overrides:
      setFacing in class Block
    • canRotateAroundBlockOnTurntableToFacing

      public boolean canRotateAroundBlockOnTurntableToFacing(World world, int i, int j, int k, int iFacing)
      Overrides:
      canRotateAroundBlockOnTurntableToFacing in class Block
    • getNewMetadataRotatedAroundBlockOnTurntableToFacing

      public int getNewMetadataRotatedAroundBlockOnTurntableToFacing(World world, int i, int j, int k, int iInitialFacing, int iRotatedFacing)
      Overrides:
      getNewMetadataRotatedAroundBlockOnTurntableToFacing in class Block
    • canMobsSpawnOn

      public boolean canMobsSpawnOn(World world, int i, int j, int k)
      Description copied from class: Block
      This is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.
      Overrides:
      canMobsSpawnOn in class Block
    • canAttachToFacing

      protected boolean canAttachToFacing(World world, int i, int j, int k, int iFacing)
    • registerIcons

      @Environment(CLIENT) public void registerIcons(IconRegister register)
      Description copied from class: Block
      When this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.
      Overrides:
      registerIcons in class Block
    • getHopperFilterIcon

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

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

      @Environment(CLIENT) public boolean renderLadder(RenderBlocks renderBlocks, int x, int y, int z)
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
      Overrides:
      shouldSideBeRendered in class Block