Class DetectorLogicBlock

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.DetectorLogicBlock
Direct Known Subclasses:
GlowingDetectorLogicBlock

public class DetectorLogicBlock extends Block
  • Field Details

  • Constructor Details

    • DetectorLogicBlock

      public DetectorLogicBlock(int iBlockID)
  • Method Details

    • tickRate

      public int tickRate(World world)
      Description copied from class: Block
      How many world ticks before ticking
      Overrides:
      tickRate 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
    • 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
    • getMobilityFlag

      public int getMobilityFlag()
      Description copied from class: Block
      Returns the mobility information of the block, 0 = free, 1 = can't push but can move over, 2 = total immobility and stop pistons // +++START EDIT+++ FCMOD: 3 = can be piston shoveled, but free otherwise // ---END EDIT---
      Overrides:
      getMobilityFlag 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
    • breakBlock

      public void breakBlock(World world, int i, int j, int k, int iBlockID, int iMetadata)
      Description copied from class: Block
      Called on server worlds only when the block has been replaced by a different block ID, or the same block with a different metadata value, but before the new metadata value is set. Args: World, x, y, z, old block ID, old metadata ??ejects contained items into the world, and notifies neighbours of an update, as appropriate?? // +++START EDIT+++ FCNOTE: Called on server only. Called AFTER block is set, so it is no longer valid at pos. // ---END EDIT---
      Overrides:
      breakBlock in class Block
    • idDropped

      public int idDropped(int i, Random random, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • canCollideCheck

      public boolean canCollideCheck(int i, boolean flag)
      Description copied from class: Block
      Returns whether this block is collideable based on the arguments passed in \n@param par1 block metaData \n@param par2 whether the player right-clicked while holding a boat
      Overrides:
      canCollideCheck in class Block
    • quantityDropped

      public int quantityDropped(Random random)
      Description copied from class: Block
      Returns the quantity of items to drop on block destruction.
      Overrides:
      quantityDropped in class Block
    • getCollisionBoundingBoxFromPool

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
      Overrides:
      getCollisionBoundingBoxFromPool in class Block
    • onNeighborBlockChange

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

      public void onEntityCollidedWithBlock(World world, int i, int j, int k, 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
    • 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
    • isAirBlock

      public boolean isAirBlock()
      Overrides:
      isAirBlock in class Block
    • triggersBuddy

      public boolean triggersBuddy()
      Description copied from class: Block
      Whether or not the block sets off Buddy Blocks. Set to false for stuff like redstone blocks that can cause feedback loops.
      Overrides:
      triggersBuddy in class Block
    • removeSelf

      protected void removeSelf(World world, int i, int j, int k)
    • isEntityCollidingFlagOn

      public boolean isEntityCollidingFlagOn(IBlockAccess iBlockAccess, int i, int j, int k)
    • setEntityCollidingFlag

      public void setEntityCollidingFlag(World world, int i, int j, int k, boolean bEntityColliding)
    • isDetectorLogicFlagOn

      public boolean isDetectorLogicFlagOn(IBlockAccess iBlockAccess, int i, int j, int k)
    • setIsDetectorLogicFlag

      public void setIsDetectorLogicFlag(World world, int i, int j, int k, boolean bIsDetectorLogic)
    • isIntersectionPointFlagOn

      public boolean isIntersectionPointFlagOn(IBlockAccess iBlockAccess, int i, int j, int k)
    • setIsIntersectionPointFlag

      public void setIsIntersectionPointFlag(World world, int i, int j, int k, boolean bIsIntersectionPoint)
    • isLitFlagOn

      public boolean isLitFlagOn(IBlockAccess iBlockAccess, int i, int j, int k)
    • setIsLitFlag

      public void setIsLitFlag(World world, int i, int j, int k, boolean bIsLitByLens)
    • isBlockGlowing

      public boolean isBlockGlowing(World world, int i, int j, int k)
    • setBlockAsGlowing

      public void setBlockAsGlowing(World world, int i, int j, int k)
    • setBlockAsNotGlowing

      public void setBlockAsNotGlowing(World world, int i, int j, int k)
    • notifyNeighboringDetectorBlocksOfChange

      public void notifyNeighboringDetectorBlocksOfChange(World world, int i, int j, int k)
    • hasValidLensSource

      public boolean hasValidLensSource(World world, int i, int j, int k)
    • hasValidLensSourceIgnoreFacing

      public boolean hasValidLensSourceIgnoreFacing(World world, int i, int j, int k, int iIgnoreFacing)
    • hasMultipleValidLensSources

      public boolean hasMultipleValidLensSources(World world, int i, int j, int k)
    • hasMultipleValidLensSourcesIgnoreFacing

      public boolean hasMultipleValidLensSourcesIgnoreFacing(World world, int i, int j, int k, int iIgnoreFacing)
    • countValidLensSources

      public int countValidLensSources(World world, int i, int j, int k)
    • countValidLensSourcesIgnoreFacing

      public int countValidLensSourcesIgnoreFacing(World world, int i, int j, int k, int iIgnoreFacing)
    • hasValidLensSourceToFacing

      public boolean hasValidLensSourceToFacing(World world, int i, int j, int k, int iFacing)
    • getRangeToValidLensSourceToFacing

      public int getRangeToValidLensSourceToFacing(World world, int i, int j, int k, int iFacing)
    • verifyLitByLens

      public boolean verifyLitByLens(World world, int i, int j, int k)
    • verifyLitByLensIgnoreFacing

      public boolean verifyLitByLensIgnoreFacing(World world, int i, int j, int k, int iIgnoreFacing)
    • hasValidLitLensSourceToFacing

      public boolean hasValidLitLensSourceToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing)
    • getRangeToValidLitLensSourceToFacing

      public int getRangeToValidLitLensSourceToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing)
    • createLensBeamFromBlock

      public void createLensBeamFromBlock(World world, int i, int j, int k, int iFacing, int iMaxRange)
    • removeLensBeamFromBlock

      public void removeLensBeamFromBlock(World world, int i, int j, int k, int iFacing, int iMaxRange)
    • lightBlock

      public void lightBlock(World world, int i, int j, int k)
    • unlightBlock

      public void unlightBlock(World world, int i, int j, int k)
    • changeStateToRegisterEntityCollision

      public void changeStateToRegisterEntityCollision(World world, int i, int j, int k)
    • changeStateToClearEntityCollision

      public void changeStateToClearEntityCollision(World world, int i, int j, int k)
    • turnBeamOnFromBlock

      public void turnBeamOnFromBlock(World world, int i, int j, int k, int iFacing, int iMaxRange)
    • turnBeamOffFromBlock

      public void turnBeamOffFromBlock(World world, int i, int j, int k, int iFacing, int iMaxRange)
    • shouldBeProjectingToFacing

      protected boolean shouldBeProjectingToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing)
    • shouldBeGlowingToFacing

      protected boolean shouldBeGlowingToFacing(World world, int i, int j, int k, int iFacing)
    • fullyValidateBlock

      public void fullyValidateBlock(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
    • renderBlock

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

      @Environment(CLIENT) public boolean renderDetectorLogicDebug(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Block block)
    • renderDetectorLogicDebugInvBlock

      @Environment(CLIENT) public void renderDetectorLogicDebugInvBlock(RenderBlocks renderBlocks, Block block, int iItemDamage, int iRenderType)