Class BlockHay


public class BlockHay extends BlockRotatedPillar
  • Constructor Details

    • BlockHay

      public BlockHay(int par1)
  • Method Details

    • canBePistonShoveled

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

      public boolean canMobsSpawnOn(World world, int x, int y, int z)
      Description copied from class: Block
      This is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.
      Overrides:
      canMobsSpawnOn in class Block
    • getRenderType

      public int getRenderType()
      The type of render function that is called for this block
      Overrides:
      getRenderType in class BlockRotatedPillar
    • getSideIcon

      protected Icon getSideIcon(int par1)
      The icon for the side of the block.
      Specified by:
      getSideIcon in class BlockRotatedPillar
    • registerIcons

      public void registerIcons(IconRegister par1IconRegister)
      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
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int i, int j, int k)
      Overrides:
      renderBlock in class Block