Interface BlockStressValues.IStressValueProvider
- All Known Implementing Classes:
CStress
- Enclosing class:
- BlockStressValues
public static interface BlockStressValues.IStressValueProvider
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetCapacity(net.minecraft.world.level.block.Block block) Gets the stress capacity of a block.getGeneratedRPM(net.minecraft.world.level.block.Block block) doublegetImpact(net.minecraft.world.level.block.Block block) Gets the stress impact of a block.booleanhasCapacity(net.minecraft.world.level.block.Block block) booleanhasImpact(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
- Parameters:
block-- Returns:
- min, max generated RPM; null if block does not have a stress capacity
-