Class FluidConfigNeoForge

java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfigNeoForge, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, ModBaseNeoForge<?>>
org.cyclops.cyclopscore.config.extendedconfig.FluidConfigNeoForge
All Implemented Interfaces:
Comparable<org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfigNeoForge, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, ModBaseNeoForge<?>>>

public abstract class FluidConfigNeoForge extends org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfigNeoForge, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, ModBaseNeoForge<?>>
Config for fluids.
See Also:
  • ExtendedConfigCommon
  • Constructor Details

    • FluidConfigNeoForge

      public FluidConfigNeoForge(ModBaseNeoForge<?> mod, String namedId, Function<FluidConfigNeoForge, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties> elementConstructor)
      Make a new instance.
      Parameters:
      mod - The mod instance.
      namedId - The unique name ID for the configurable.
      elementConstructor - The element constructor.
  • Method Details

    • getSourceFluid

      public net.minecraft.world.level.material.Fluid getSourceFluid()
    • getFlowingFluid

      public net.minecraft.world.level.material.Fluid getFlowingFluid()
    • getDefaultFluidProperties

      protected static net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties getDefaultFluidProperties(FluidConfigNeoForge config, Consumer<net.neoforged.neoforge.fluids.FluidType.Properties> fluidAttributesConsumer)
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfigNeoForge, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, ModBaseNeoForge<?>>
    • getConfigurableType

      public org.cyclops.cyclopscore.config.ConfigurableTypeCommon getConfigurableType()
      Specified by:
      getConfigurableType in class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfigNeoForge, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, ModBaseNeoForge<?>>
    • constructFluidClientConfigNeoForge

      @Nullable public FluidClientConfigNeoForge constructFluidClientConfigNeoForge()
    • getFluidClientConfigNeoForge

      @Nullable public final FluidClientConfigNeoForge getFluidClientConfigNeoForge()
    • onRegistryRegistered

      public void onRegistryRegistered()
      Overrides:
      onRegistryRegistered in class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfigNeoForge, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, ModBaseNeoForge<?>>