Class FluidConfig
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<FluidConfig,net.minecraftforge.fluids.ForgeFlowingFluid.Properties>
org.cyclops.cyclopscore.config.extendedconfig.FluidConfig
- All Implemented Interfaces:
Comparable<ExtendedConfig<FluidConfig,
net.minecraftforge.fluids.ForgeFlowingFluid.Properties>>
public abstract class FluidConfig
extends ExtendedConfig<FluidConfig,net.minecraftforge.fluids.ForgeFlowingFluid.Properties>
Config for fluids.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties
-
Constructor Summary
ConstructorDescriptionFluidConfig
(ModBase mod, String namedId, Function<FluidConfig, net.minecraftforge.fluids.ForgeFlowingFluid.Properties> elementConstructor) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds dataprotected static net.minecraftforge.fluids.ForgeFlowingFluid.Properties
getDefaultFluidProperties
(ModBase mod, String texturePrefixPath, Consumer<net.minecraftforge.fluids.FluidType.Properties> fluidAttributesConsumer) net.minecraft.resources.ResourceLocation
Get the flow icon location.net.minecraft.resources.ResourceLocation
Get the still icon location.Get the unlocalized name (must be unique!) for this configurable.Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
compareTo, downCast, getConfigPropertyPrefix, getFullTranslationKey, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
Constructor Details
-
FluidConfig
public FluidConfig(ModBase mod, String namedId, Function<FluidConfig, net.minecraftforge.fluids.ForgeFlowingFluid.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
Description copied from class:ExtendedConfig
Get the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKey
in classExtendedConfig<FluidConfig,
net.minecraftforge.fluids.ForgeFlowingFluid.Properties> - Returns:
- The unlocalized name.
-
getConfigurableType
Description copied from class:ExtendedConfig
Return the configurable type for which this config holds data- Specified by:
getConfigurableType
in classExtendedConfig<FluidConfig,
net.minecraftforge.fluids.ForgeFlowingFluid.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.
-