Class SugarCaneBlock


public class SugarCaneBlock extends SugarCaneBlockBase
  • Constructor Details

    • SugarCaneBlock

      public SugarCaneBlock(int id)
  • Method Details

    • canPlaceBlockAt

      public boolean canPlaceBlockAt(World world, int x, int y, int z)
      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 SugarCaneBlockBase
    • idDropped

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

      public int idPicked(World par1World, int par2, int par3, int par4)
      Description copied from class: Block
      only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) // +++START EDIT+++ FCNOTE: Client only // ---END EDIT---
      Overrides:
      idPicked in class Block