Package com.simibubi.create.api.stress
Class BlockStressValues
java.lang.Object
com.simibubi.create.api.stress.BlockStressValues
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleRegistry<net.minecraft.world.level.block.Block, DoubleSupplier> Registry for suppliers of stress capacities.static final SimpleRegistry<net.minecraft.world.level.block.Block, DoubleSupplier> Registry for suppliers of stress impacts.static final SimpleRegistry<net.minecraft.world.level.block.Block, BlockStressValues.GeneratedRpm> Registry for generator RPM values. -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetCapacity(net.minecraft.world.level.block.Block block) static doublegetImpact(net.minecraft.world.level.block.Block block) static com.tterrag.registrate.util.nullness.NonNullConsumer<net.minecraft.world.level.block.Block> setGeneratorSpeed(int value) Shortcut for when a generator always generates the same RPM.static com.tterrag.registrate.util.nullness.NonNullConsumer<net.minecraft.world.level.block.Block> setGeneratorSpeed(int value, boolean mayGenerateLess) Utility for Registrate.
-
Field Details
-
IMPACTS
Registry for suppliers of stress impacts. Determine the base impact at 1 RPM. -
CAPACITIES
Registry for suppliers of stress capacities. Determine the base capacity at 1 RPM. -
RPM
public static final SimpleRegistry<net.minecraft.world.level.block.Block,BlockStressValues.GeneratedRpm> RPMRegistry for generator RPM values. This is only used for tooltips; actual functionality is determined by the block.
-
-
Method Details
-
getImpact
public static double getImpact(net.minecraft.world.level.block.Block block) -
getCapacity
public static double getCapacity(net.minecraft.world.level.block.Block block) -
setGeneratorSpeed
public static com.tterrag.registrate.util.nullness.NonNullConsumer<net.minecraft.world.level.block.Block> setGeneratorSpeed(int value) Shortcut for when a generator always generates the same RPM. -
setGeneratorSpeed
public static com.tterrag.registrate.util.nullness.NonNullConsumer<net.minecraft.world.level.block.Block> setGeneratorSpeed(int value, boolean mayGenerateLess) Utility for Registrate. Registers the given RPM generation info to blocks passed to the returned consumer.
-