Class SugarCaneBlockBase

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.SugarCaneBlockBase
Direct Known Subclasses:
SugarCaneBlock, SugarCaneBlockRoots

public abstract class SugarCaneBlockBase extends Block
  • Constructor Details

    • SugarCaneBlockBase

      public SugarCaneBlockBase(int id)
  • Method Details

    • updateTick

      public void updateTick(World world, int x, int y, int z, 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 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
    • getCollisionBoundingBoxFromPool

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z)
      Overrides:
      getCollisionBoundingBoxFromPool in class Block
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int x, int y, int z, int neighborID)
      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
    • canBlockStay

      public boolean canBlockStay(World world, int x, int y, int z)
      Description copied from class: Block
      Can this block stay at this position. Similar to canPlaceBlockAt except gets checked often with plants.
      Overrides:
      canBlockStay in class Block
    • 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 Block
    • onEntityCollidedWithBlock

      public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity)
      Description copied from class: Block
      Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
      Overrides:
      onEntityCollidedWithBlock in class Block
    • doesBlockDropAsItemOnSaw

      public boolean doesBlockDropAsItemOnSaw(World world, int z, int y, int x)
      Overrides:
      doesBlockDropAsItemOnSaw in class Block
    • getPreventsFluidFlow

      public boolean getPreventsFluidFlow(World world, int x, int y, int z, Block fluidBlock)
      Overrides:
      getPreventsFluidFlow in class Block
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int x, int y, int z)
      Overrides:
      renderBlock in class Block