Class BlockStressDefaults

java.lang.Object
com.simibubi.create.foundation.block.BlockStressDefaults

public class BlockStressDefaults extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<net.minecraft.resources.ResourceLocation,Double>
     
    static final Map<net.minecraft.resources.ResourceLocation,Double>
     
    static final int
    Increment this number if all stress entries should be forced to update in the next release.
    static final Map<net.minecraft.resources.ResourceLocation,Supplier<Couple<Integer>>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    static void
    setDefaultCapacity(net.minecraft.resources.ResourceLocation blockId, double capacity)
     
    static void
    setDefaultImpact(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>>
     
    static void
    setGeneratorSpeed(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>>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FORCED_UPDATE_VERSION

      public static final int FORCED_UPDATE_VERSION
      Increment 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

      public static final Map<net.minecraft.resources.ResourceLocation,Double> DEFAULT_IMPACTS
    • DEFAULT_CAPACITIES

      public static final Map<net.minecraft.resources.ResourceLocation,Double> DEFAULT_CAPACITIES
    • GENERATOR_SPEEDS

      public static final Map<net.minecraft.resources.ResourceLocation,Supplier<Couple<Integer>>> 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

      public static void setGeneratorSpeed(net.minecraft.resources.ResourceLocation blockId, Supplier<Couple<Integer>> provider)
    • 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

      public 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)