Class SandAndGravelSlabBlock


public class SandAndGravelSlabBlock extends FallingSlabBlock
  • Field Details

  • Constructor Details

    • SandAndGravelSlabBlock

      public SandAndGravelSlabBlock(int iBlockID)
  • Method Details

    • damageDropped

      public int damageDropped(int iMetadata)
      Description copied from class: Block
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class Block
    • getMovementModifier

      public float getMovementModifier(World world, int i, int j, int k)
      Overrides:
      getMovementModifier in class Block
    • getStepSoundInternal

      protected StepSound getStepSoundInternal(World world, int meta)
      Overrides:
      getStepSoundInternal in class Block
    • attemptToCombineWithFallingEntity

      public boolean attemptToCombineWithFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Description copied from class: Block
      returns true if the block has combined with the entity
      Overrides:
      attemptToCombineWithFallingEntity in class FallingSlabBlock
    • getCombinedBlockID

      public int getCombinedBlockID(int iMetadata)
      Specified by:
      getCombinedBlockID in class SlabBlock
    • 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
    • getIsUpsideDown

      public boolean getIsUpsideDown(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getIsUpsideDown in class SlabBlock
    • getIsUpsideDown

      public boolean getIsUpsideDown(int iMetadata)
      Overrides:
      getIsUpsideDown in class SlabBlock
    • setIsUpsideDown

      public void setIsUpsideDown(World world, int i, int j, int k, boolean bUpsideDown)
      Overrides:
      setIsUpsideDown in class SlabBlock
    • setIsUpsideDown

      public int setIsUpsideDown(int iMetadata, boolean bUpsideDown)
      Overrides:
      setIsUpsideDown in class SlabBlock
    • canBePistonShoveled

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

      public int getSubtype(IBlockAccess blockAccess, int i, int j, int k)
    • getSubtypeFromMetadata

      public int getSubtypeFromMetadata(int iMetadata)
    • setSubtype

      public void setSubtype(World world, int i, int j, int k, int iSubtype)
    • isBreakableBarricade

      public boolean isBreakableBarricade(World world, int i, int j, int k, boolean advancedBreaker)
      Overrides:
      isBreakableBarricade in class Block
    • 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
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • getSubBlocks

      @Environment(CLIENT) public void getSubBlocks(int iBlockID, CreativeTabs creativeTabs, List list)
      Description copied from class: Block
      returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
      Overrides:
      getSubBlocks in class Block