Class MilkBlock

Direct Known Subclasses:
ChocolateMilkBlock

public class MilkBlock extends FallingBlock
  • Field Details

  • Constructor Details

    • MilkBlock

      public MilkBlock(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
    • 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
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      Ticks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      updateTick in class FallingBlock
    • onStartFalling

      protected void onStartFalling(EntityFallingSand entity)
      Description copied from class: Block
      Only called on server
      Overrides:
      onStartFalling in class Block
    • getDecayLevel

      public int getDecayLevel(IBlockAccess blockAccess, int i, int j, int k)
    • getDecayLevel

      public int getDecayLevel(int iMetadata)
    • setDecayLevel

      public void setDecayLevel(World world, int i, int j, int k, int iLevel)
    • setDecayLevel

      public int setDecayLevel(int iMetadata, int iLevel)