Class BlockStressValues

java.lang.Object
com.simibubi.create.api.stress.BlockStressValues

public class BlockStressValues extends Object
  • Field Details

    • IMPACTS

      public static final SimpleRegistry<net.minecraft.world.level.block.Block,DoubleSupplier> IMPACTS
      Registry for suppliers of stress impacts. Determine the base impact at 1 RPM.
    • CAPACITIES

      public static final SimpleRegistry<net.minecraft.world.level.block.Block,DoubleSupplier> 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> RPM
      Registry for generator RPM values. This is only used for tooltips; actual functionality is determined by the block.
  • Constructor Details

    • BlockStressValues

      public BlockStressValues()
  • 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.