Class BlockPressurePlateWeighted


public class BlockPressurePlateWeighted extends BlockBasePressurePlate
  • Constructor Details

    • BlockPressurePlateWeighted

      protected BlockPressurePlateWeighted(int par1, String par2Str, Material par3Material, int par4)
  • Method Details

    • getPlateState

      protected int getPlateState(World par1World, int par2, int par3, int par4)
      Returns the current state of the pressure plate. Returns a value between 0 and 15 based on the number of items on it.
      Specified by:
      getPlateState in class BlockBasePressurePlate
    • getPowerSupply

      protected int getPowerSupply(int par1)
      Argument is metadata. Returns power level (0-15)
      Specified by:
      getPowerSupply in class BlockBasePressurePlate
    • getMetaFromWeight

      protected int getMetaFromWeight(int par1)
      Argument is weight (0-15). Return the metadata to be set because of it.
      Specified by:
      getMetaFromWeight in class BlockBasePressurePlate
    • tickRate

      public int tickRate(World par1World)
      How many world ticks before ticking
      Overrides:
      tickRate in class BlockBasePressurePlate