Class BlockStressDefaults
java.lang.Object
com.simibubi.create.foundation.block.BlockStressDefaults
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIncrement this number if all stress entries should be forced to update in the next release. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends net.minecraft.world.level.block.Block,P>
com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>> setCapacity(double capacity) static voidsetDefaultCapacity(net.minecraft.resources.ResourceLocation blockId, double capacity) static voidsetDefaultImpact(net.minecraft.resources.ResourceLocation blockId, double impact) static <B extends net.minecraft.world.level.block.Block,P>
com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>> setGeneratorSpeed(Supplier<Couple<Integer>> provider) static voidsetGeneratorSpeed(net.minecraft.resources.ResourceLocation blockId, Supplier<Couple<Integer>> provider) static <B extends net.minecraft.world.level.block.Block,P>
com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>> setImpact(double impact) static <B extends net.minecraft.world.level.block.Block,P>
com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>>
-
Field Details
-
FORCED_UPDATE_VERSION
public static final int FORCED_UPDATE_VERSIONIncrement this number if all stress entries should be forced to update in the next release. Worlds from the previous version will overwrite potentially changed values with the new defaults.- See Also:
-
DEFAULT_IMPACTS
-
DEFAULT_CAPACITIES
-
GENERATOR_SPEEDS
-
-
Constructor Details
-
BlockStressDefaults
public BlockStressDefaults()
-
-
Method Details
-
setDefaultImpact
public static void setDefaultImpact(net.minecraft.resources.ResourceLocation blockId, double impact) -
setDefaultCapacity
public static void setDefaultCapacity(net.minecraft.resources.ResourceLocation blockId, double capacity) -
setGeneratorSpeed
-
setNoImpact
public static <B extends net.minecraft.world.level.block.Block,P> com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>> setNoImpact() -
setImpact
public static <B extends net.minecraft.world.level.block.Block,P> com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>> setImpact(double impact) -
setCapacity
public static <B extends net.minecraft.world.level.block.Block,P> com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>> setCapacity(double capacity) -
setGeneratorSpeed
-