Class PaneBlock

Direct Known Subclasses:
GrateBlock, IronBarsBlock, SlatsBlock, WickerPaneBlock

public class PaneBlock extends BlockPane
  • Constructor Details

    • PaneBlock

      public PaneBlock(int iBlockID, String sTextureName, String sSideTextureName, Material material, boolean bCanDropItself)
  • Method Details

    • getBlockBoundsFromPoolBasedOnState

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

      public void addCollisionBoxesToList(World world, int x, int y, int z, AxisAlignedBB intersectingBox, List list, Entity entity)
      Description copied from class: BlockPane
      Adds all intersecting collision boxes to a list. (Be sure to only add boxes to the list if they intersect the mask.) Parameters: World, X, Y, Z, mask, list, colliding entity
      Overrides:
      addCollisionBoxesToList in class BlockPane
    • setBlockBoundsBasedOnState

      public void setBlockBoundsBasedOnState(IBlockAccess blockAccess, int i, int j, int k)
      Description copied from class: BlockPane
      Updates the blocks bounds based on its current state. Args: world, x, y, z
      Overrides:
      setBlockBoundsBasedOnState in class BlockPane
    • setBlockBoundsForItemRender

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

      public boolean shouldWallConnectToThisBlockToFacing(IBlockAccess blockAccess, int x, int y, int z, int facing)
      Overrides:
      shouldWallConnectToThisBlockToFacing in class Block
    • shouldPaneConnectToThisBlockToFacing

      public boolean shouldPaneConnectToThisBlockToFacing(IBlockAccess blockAccess, int x, int y, int z, int facing)
      Overrides:
      shouldPaneConnectToThisBlockToFacing in class Block
    • canConnectToBlockToFacing

      public static boolean canConnectToBlockToFacing(IBlockAccess blockAccess, int x, int y, int z, int facing)
    • renderBlock

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

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
      Description copied from class: BlockPane
      Returns true if the given side of this block type should be rendered, if the adjacent block is at the given coordinates. Args: blockAccess, x, y, z, side
      Overrides:
      shouldSideBeRendered in class BlockPane