Class PetrolparkStressConfig

java.lang.Object
net.createmod.catnip.config.ConfigBase
com.petrolpark.config.PetrolparkStressConfig

public class PetrolparkStressConfig extends net.createmod.catnip.config.ConfigBase
Copied from Create source code.
  • 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
    getCapacity(net.minecraft.world.level.block.Block block)
     
    @Nullable DoubleSupplier
    getImpact(net.minecraft.world.level.block.Block block)
     
     
    static final void
    onAddAdditionalConfig(com.petrolpark.config.PetrolparkServerConfig.AdditionalEvent event)
     
    void
    registerAll(net.neoforged.neoforge.common.ModConfigSpec.Builder builder)
     
    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 value)
     
    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 value)
     
    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 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

    • PetrolparkStressConfig

      public PetrolparkStressConfig()
  • Method Details

    • registerAll

      public void registerAll(@Nonnull 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
    • getImpact

      @Nullable public @Nullable DoubleSupplier getImpact(net.minecraft.world.level.block.Block block)
    • getCapacity

      @Nullable public @Nullable DoubleSupplier getCapacity(net.minecraft.world.level.block.Block block)
    • 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 value)
    • 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 value)
    • onAddAdditionalConfig

      public static final void onAddAdditionalConfig(com.petrolpark.config.PetrolparkServerConfig.AdditionalEvent event)