Class AxlePowerSourceBlock


public class AxlePowerSourceBlock extends AxleBlock
  • Constructor Details

    • AxlePowerSourceBlock

      public AxlePowerSourceBlock(int iBlockID)
  • Method Details

    • 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 AxleBlock
    • onNeighborBlockChange

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

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

      public int getMechanicalPowerLevelProvidedToAxleAtFacing(World world, int i, int j, int k, int iFacing)
      Overrides:
      getMechanicalPowerLevelProvidedToAxleAtFacing in class AxleBlock
    • validatePowerLevel

      protected void validatePowerLevel(World world, int i, int j, int k)
      Overrides:
      validatePowerLevel in class AxleBlock
    • getPowerLevel

      public int getPowerLevel(IBlockAccess iBlockAccess, int i, int j, int k)
      Overrides:
      getPowerLevel in class AxleBlock
    • getPowerLevelFromMetadata

      public int getPowerLevelFromMetadata(int iMetadata)
      Overrides:
      getPowerLevelFromMetadata in class AxleBlock
    • setPowerLevel

      public void setPowerLevel(World world, int i, int j, int k, int iPowerLevel)
      Overrides:
      setPowerLevel in class AxleBlock
    • setPowerLevelInMetadata

      public int setPowerLevelInMetadata(int iMetadata, int iPowerLevel)
      Overrides:
      setPowerLevelInMetadata in class AxleBlock
    • setPowerLevelWithoutNotify

      public void setPowerLevelWithoutNotify(World world, int i, int j, int k, int iPowerLevel)
      Overrides:
      setPowerLevelWithoutNotify in class AxleBlock
    • clientCheckIfPowered

      @Environment(CLIENT) public boolean clientCheckIfPowered(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      clientCheckIfPowered in class AxleBlock