Class FluidConfig
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfig,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties,ModBase<?>>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<FluidConfig,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties>
org.cyclops.cyclopscore.config.extendedconfig.FluidConfig
- All Implemented Interfaces:
Comparable<org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfig,
net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, ModBase<?>>>
public abstract class FluidConfig
extends ExtendedConfig<FluidConfig,net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties>
Config for fluids.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon
configProperties
-
Constructor Summary
ConstructorDescriptionFluidConfig
(ModBase<?> mod, String namedId, Function<FluidConfig, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties> elementConstructor) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected static net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties
getDefaultFluidProperties
(ModBase<?> 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.ExtendedConfig
getConfigPropertyPrefix, getConfigPropertyPrefix, getConfigPropertyPrefixPublic, getMod
Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon
addInstanceTransformer, compareTo, downCast, getElementConstructor, getFullTranslationKey, getInstance, getNamedId, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
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
-
getTranslationKey
- Specified by:
getTranslationKey
in classorg.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<FluidConfig,
net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, ModBase<?>>
-
getConfigurableType
- Specified by:
getConfigurableType
in classExtendedConfig<FluidConfig,
net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties>
-
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.
-