Record Class ClientExtensionInfo.Fluid
java.lang.Object
java.lang.Record
org.moddingx.libx.registration.util.ClientExtensionInfo.Fluid
- Enclosing class:
ClientExtensionInfo
public static record ClientExtensionInfo.Fluid(Supplier<net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions> extensions, Supplier<net.minecraft.client.renderer.block.FluidModel.Unbaked> model)
extends Record
Wraps some
client fluid type extensions together with a
fluid model. Using the LibX registration system, an instance of this class can be
registered on the client using the same id as the associated FluidType
to set up the client fluid type extensions. The
fluid model is registered for every fluid
belonging to that fluid type, so for both the source and the flowing fluid.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFluid(Supplier<net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions> extensions, Supplier<net.minecraft.client.renderer.block.FluidModel.Unbaked> model) Creates an instance of aFluidrecord class.Fluid(net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions extensions, net.minecraft.client.renderer.block.FluidModel.Unbaked model) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Supplier<net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions> Returns the value of theextensionsrecord component.final inthashCode()Returns a hash code value for this object.Supplier<net.minecraft.client.renderer.block.FluidModel.Unbaked> model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fluid
public Fluid(net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions extensions, net.minecraft.client.renderer.block.FluidModel.Unbaked model) -
Fluid
public Fluid(Supplier<net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions> extensions, Supplier<net.minecraft.client.renderer.block.FluidModel.Unbaked> model) Creates an instance of aFluidrecord class.- Parameters:
extensions- the value for theextensionsrecord componentmodel- the value for themodelrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
extensions
public Supplier<net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions> extensions()Returns the value of theextensionsrecord component.- Returns:
- the value of the
extensionsrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-