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:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon
configProperties
-
Constructor Summary
ConstructorsConstructorDescriptionFluidConfigNeoForge
(ModBaseNeoForge<?> mod, String namedId, Function<FluidConfigNeoForge, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties> elementConstructor) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.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
-
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
- Specified by:
getTranslationKey
in classorg.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 classorg.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.
-