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
  • Field Summary

    Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon

    configProperties
  • Constructor Summary

    Constructors
    Constructor
    Description
    FluidConfigNeoForge(ModBaseNeoForge<?> mod, String namedId, Function<FluidConfigNeoForge,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties> elementConstructor)
    Make a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.cyclops.cyclopscore.config.ConfigurableTypeCommon
     
    protected static net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties
    getDefaultFluidProperties(ModBaseNeoForge<?> mod, String texturePrefixPath, Consumer<net.neoforged.neoforge.fluids.FluidType.Properties> fluidAttributesConsumer)
     
    net.minecraft.resources.ResourceLocation
    Get the flow icon location.
    net.minecraft.resources.ResourceLocation
    Get the still icon location.
     

    Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon

    addInstanceTransformer, compareTo, downCast, getConfigPropertyPrefix, getElementConstructor, getFullTranslationKey, getInstance, getMod, getNamedId, getSubUniqueName, initializeInstance, onConfigPropertyReload, onRegistered, onRegistryRegistered, save, showDoubleInitError

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

    • getDefaultFluidProperties

      protected static net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties getDefaultFluidProperties(ModBaseNeoForge<?> mod, String texturePrefixPath, 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<?>>
    • getIconLocationStill

      public net.minecraft.resources.ResourceLocation getIconLocationStill()
      Get the still icon location.
      Returns:
      The icon location.
    • getIconLocationFlow

      public net.minecraft.resources.ResourceLocation getIconLocationFlow()
      Get the flow icon location.
      Returns:
      The icon location.