Class PPCStress

java.lang.Object
net.createmod.catnip.config.ConfigBase
petrolpark.mc.petrolsparts.config.PPCStress

public class PPCStress extends net.createmod.catnip.config.ConfigBase
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.createmod.catnip.config.ConfigBase

    net.createmod.catnip.config.ConfigBase.ConfigBool, net.createmod.catnip.config.ConfigBase.ConfigEnum<T extends Enum<T>>, net.createmod.catnip.config.ConfigBase.ConfigFloat, net.createmod.catnip.config.ConfigBase.ConfigGroup, net.createmod.catnip.config.ConfigBase.ConfigInt, net.createmod.catnip.config.ConfigBase.CValue<V,T extends net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<V>>, net.createmod.catnip.config.ConfigBase.IValueProvider<V,T extends net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<V>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<net.minecraft.resources.ResourceLocation,net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<Double>>
     
    protected final Map<net.minecraft.resources.ResourceLocation,net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<Double>>
     

    Fields inherited from class net.createmod.catnip.config.ConfigBase

    allValues, children, depth, specification
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable DoubleSupplier
    getBlockCapacity(net.minecraft.world.level.block.Block block)
     
    @Nullable DoubleSupplier
    getBlockImpact(net.minecraft.world.level.block.Block block)
     
    @Nullable DoubleSupplier
    getItemCapacity(net.minecraft.world.item.Item block)
     
    @Nullable DoubleSupplier
    getItemImpact(net.minecraft.world.item.Item block)
     
     
    void
    registerAll(net.neoforged.neoforge.common.ModConfigSpec.Builder builder)
     
    static <B extends com.tterrag.registrate.builders.AbstractBuilder<?, ?, ?, ?>>
    com.tterrag.registrate.util.nullness.NonNullUnaryOperator<B>
    setCapacity(double value)
     
    static <B extends com.tterrag.registrate.builders.AbstractBuilder<?, ?, ?, ?>>
    com.tterrag.registrate.util.nullness.NonNullUnaryOperator<B>
    setImpact(double value)
     
    static <B extends com.tterrag.registrate.builders.AbstractBuilder<?, ?, ?, ?>>
    com.tterrag.registrate.util.nullness.NonNullUnaryOperator<B>
     

    Methods inherited from class net.createmod.catnip.config.ConfigBase

    b, e, f, f, group, i, i, i, nested, onLoad, onReload

    Methods inherited from class java.lang.Object

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

    • capacities

      protected final Map<net.minecraft.resources.ResourceLocation,net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<Double>> capacities
    • impacts

      protected final Map<net.minecraft.resources.ResourceLocation,net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<Double>> impacts
  • Constructor Details

    • PPCStress

      public PPCStress()
  • Method Details

    • registerAll

      public void registerAll(net.neoforged.neoforge.common.ModConfigSpec.Builder builder)
      Overrides:
      registerAll in class net.createmod.catnip.config.ConfigBase
    • getName

      public String getName()
      Specified by:
      getName in class net.createmod.catnip.config.ConfigBase
    • getBlockImpact

      @Nullable public @Nullable DoubleSupplier getBlockImpact(net.minecraft.world.level.block.Block block)
    • getBlockCapacity

      @Nullable public @Nullable DoubleSupplier getBlockCapacity(net.minecraft.world.level.block.Block block)
    • getItemImpact

      @Nullable public @Nullable DoubleSupplier getItemImpact(net.minecraft.world.item.Item block)
    • getItemCapacity

      @Nullable public @Nullable DoubleSupplier getItemCapacity(net.minecraft.world.item.Item block)
    • setNoImpact

      public static <B extends com.tterrag.registrate.builders.AbstractBuilder<?, ?, ?, ?>> com.tterrag.registrate.util.nullness.NonNullUnaryOperator<B> setNoImpact()
    • setImpact

      public static <B extends com.tterrag.registrate.builders.AbstractBuilder<?, ?, ?, ?>> com.tterrag.registrate.util.nullness.NonNullUnaryOperator<B> setImpact(double value)
    • setCapacity

      public static <B extends com.tterrag.registrate.builders.AbstractBuilder<?, ?, ?, ?>> com.tterrag.registrate.util.nullness.NonNullUnaryOperator<B> setCapacity(double value)