Interface BlockStressValues.IStressValueProvider

All Known Implementing Classes:
CStress
Enclosing class:
BlockStressValues

public static interface BlockStressValues.IStressValueProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getCapacity(net.minecraft.world.level.block.Block block)
    Gets the stress capacity of a block.
    getGeneratedRPM(net.minecraft.world.level.block.Block block)
     
    double
    getImpact(net.minecraft.world.level.block.Block block)
    Gets the stress impact of a block.
    boolean
    hasCapacity(net.minecraft.world.level.block.Block block)
     
    boolean
    hasImpact(net.minecraft.world.level.block.Block block)
     
  • Method Details

    • getImpact

      double getImpact(net.minecraft.world.level.block.Block block)
      Gets the stress impact of a block.
      Parameters:
      block - The block.
      Returns:
      the stress impact value of the block, or 0 if it does not have one.
    • getCapacity

      double getCapacity(net.minecraft.world.level.block.Block block)
      Gets the stress capacity of a block.
      Parameters:
      block - The block.
      Returns:
      the stress capacity value of the block, or 0 if it does not have one.
    • hasImpact

      boolean hasImpact(net.minecraft.world.level.block.Block block)
    • hasCapacity

      boolean hasCapacity(net.minecraft.world.level.block.Block block)
    • getGeneratedRPM

      @Nullable Couple<Integer> getGeneratedRPM(net.minecraft.world.level.block.Block block)
      Parameters:
      block -
      Returns:
      min, max generated RPM; null if block does not have a stress capacity