Class BasketBlock

All Implemented Interfaces:
ITileEntityProvider
Direct Known Subclasses:
BarkBoxBlock, HamperBlock, WickerBasketBlock

public abstract class BasketBlock extends BlockContainer
  • Field Details

    • renderingOpenLid

      @Environment(CLIENT) public boolean renderingOpenLid
    • openLidBrightness

      @Environment(CLIENT) public int openLidBrightness
  • Constructor Details

    • BasketBlock

      protected BasketBlock(int iBlockID, Material material)
  • Method Details

    • breakBlock

      public void breakBlock(World world, int i, int j, int k, int iBlockID, int iMetadata)
      Description copied from class: BlockContainer
      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 BlockContainer
    • 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
    • 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
    • preBlockPlacedBy

      public int preBlockPlacedBy(World world, int i, int j, int k, int iMetadata, EntityLivingBase entityBy)
      Description copied from class: Block
      Similar to onBlockPlacedBy() but called before the block is placed rather than after
      Overrides:
      preBlockPlacedBy 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
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iBlockID)
      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
    • canBeCrushedByFallingEntity

      public boolean canBeCrushedByFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Overrides:
      canBeCrushedByFallingEntity 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
    • canRotateOnTurntable

      public boolean canRotateOnTurntable(IBlockAccess iBlockAccess, int i, int j, int k)
      Overrides:
      canRotateOnTurntable in class Block
    • getPreventsFluidFlow

      public boolean getPreventsFluidFlow(World world, int i, int j, int k, Block fluidBlock)
      Overrides:
      getPreventsFluidFlow in class Block
    • setHasContents

      public void setHasContents(World world, int i, int j, int k, boolean bHasContents)
    • setHasContents

      public int setHasContents(int iMetadata, boolean bHasContents)
    • getHasContents

      public boolean getHasContents(IBlockAccess blockAccess, int i, int j, int k)
    • getHasContents

      public boolean getHasContents(int iMetadata)
    • setIsOpen

      public void setIsOpen(World world, int i, int j, int k, boolean bOpen)
    • setIsOpen

      public int setIsOpen(int iMetadata, boolean bOpen)
    • getIsOpen

      public boolean getIsOpen(IBlockAccess blockAccess, int i, int j, int k)
    • getIsOpen

      public boolean getIsOpen(int iMetadata)
    • getLidModel

      public abstract BlockModel getLidModel(int iMetadata)
    • getLidRotationPoint

      public abstract Vec3 getLidRotationPoint()
    • getMixedBrightnessForBlock

      @Environment(CLIENT) public int getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
      Description copied from class: Block
      Goes straight to getLightBrightnessForSkyBlocks for Blocks, does some fancy computing for Fluids
      Overrides:
      getMixedBrightnessForBlock in class Block