java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<FluidConfig,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties>
org.cyclops.cyclopscore.config.extendedconfig.FluidConfig
All Implemented Interfaces:
Comparable<ExtendedConfig<FluidConfig,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties>>

public abstract class FluidConfig extends ExtendedConfig<FluidConfig,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties>
Config for fluids.
See Also:
  • Constructor Details

    • FluidConfig

      public FluidConfig(ModBase mod, String namedId, Function<FluidConfig,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(ModBase mod, String texturePrefixPath, Consumer<net.neoforged.neoforge.fluids.FluidType.Properties> fluidAttributesConsumer)
    • getTranslationKey

      public String getTranslationKey()
      Description copied from class: ExtendedConfig
      Get the unlocalized name (must be unique!) for this configurable.
      Specified by:
      getTranslationKey in class ExtendedConfig<FluidConfig,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties>
      Returns:
      The unlocalized name.
    • getConfigurableType

      public ConfigurableType getConfigurableType()
      Description copied from class: ExtendedConfig
      Return the configurable type for which this config holds data
      Specified by:
      getConfigurableType in class ExtendedConfig<FluidConfig,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties>
      Returns:
      the type of the configurable to where the config belongs
    • 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.