Class LightBlock

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.LightBlock

public class LightBlock extends Block
  • Constructor Details

    • LightBlock

      public LightBlock(int iBlockID, boolean bGlowing)
  • Method Details

    • tickRate

      public int tickRate(World world)
      Description copied from class: Block
      How many world ticks before ticking
      Overrides:
      tickRate in class Block
    • onBlockAdded

      public void onBlockAdded(World world, int i, int j, int k)
      Description copied from class: Block
      Called whenever the block is added into the world. Args: world, x, y, z // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      onBlockAdded in class Block
    • idDropped

      public int idDropped(int iMetaData, Random random, 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 random)
      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
    • randomUpdateTick

      public void randomUpdateTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      Called on server only
      Overrides:
      randomUpdateTick in class Block
    • isCurrentStateValid

      public boolean isCurrentStateValid(World world, int i, int j, int k)
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int l)
      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
    • canRotateOnTurntable

      public boolean canRotateOnTurntable(IBlockAccess iBlockAccess, int i, int j, int k)
      Overrides:
      canRotateOnTurntable in class Block
    • canTransmitRotationHorizontallyOnTurntable

      public boolean canTransmitRotationHorizontallyOnTurntable(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      canTransmitRotationHorizontallyOnTurntable in class Block
    • canTransmitRotationVerticallyOnTurntable

      public boolean canTransmitRotationVerticallyOnTurntable(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      canTransmitRotationVerticallyOnTurntable in class Block
    • hasLargeCenterHardPointToFacing

      public boolean hasLargeCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency)
      Description copied from class: Block
      large attachment points that can support a full block width
      Overrides:
      hasLargeCenterHardPointToFacing in class Block
    • isLightOn

      public boolean isLightOn(World world, int i, int j, int k)
    • 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
    • getBlockBrightness

      @Environment(CLIENT) public float getBlockBrightness(IBlockAccess iblockaccess, int i, int j, int k)
      Description copied from class: Block
      How bright to render this block based on the light its receiving. Args: iBlockAccess, x, y, z
      Overrides:
      getBlockBrightness in class Block
    • idPicked

      @Environment(CLIENT) public int idPicked(World world, int i, int j, int k)
      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