Record Class FluidModel.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.FluidModel.Unbaked
- Enclosing class:
FluidModel
public static record FluidModel.Unbaked(Material stillMaterial, Material flowingMaterial, @Nullable Material overlayMaterial, @Nullable FluidTintSource fluidTintSource, @Nullable CustomFluidRenderer customRenderer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable CustomFluidRendererThe field for thecustomRendererrecord component.private final MaterialThe field for theflowingMaterialrecord component.private final @Nullable FluidTintSourceThe field for thefluidTintSourcerecord component.private final @Nullable MaterialThe field for theoverlayMaterialrecord component.private final MaterialThe field for thestillMaterialrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(Material stillMaterial, Material flowingMaterial, @Nullable Material overlayMaterial, @Nullable BlockTintSource tintSource) Deprecated.Unbaked(Material stillMaterial, Material flowingMaterial, @Nullable Material overlayMaterial, @Nullable FluidTintSource fluidTintSource) Unbaked(Material stillMaterial, Material flowingMaterial, @Nullable Material overlayMaterial, @Nullable FluidTintSource fluidTintSource, @Nullable CustomFluidRenderer customRenderer) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(MaterialBaker materials, ModelDebugName modelName) @Nullable CustomFluidRendererReturns the value of thecustomRendererrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theflowingMaterialrecord component.@Nullable FluidTintSourceReturns the value of thefluidTintSourcerecord component.private static TransparencygetTransparency(Material.Baked material) final inthashCode()Returns a hash code value for this object.@Nullable MaterialReturns the value of theoverlayMaterialrecord component.Returns the value of thestillMaterialrecord component.@Nullable BlockTintSourceDeprecated.Neo: usefluidTintSource()insteadfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
stillMaterial
The field for thestillMaterialrecord component. -
flowingMaterial
The field for theflowingMaterialrecord component. -
overlayMaterial
The field for theoverlayMaterialrecord component. -
fluidTintSource
The field for thefluidTintSourcerecord component. -
customRenderer
The field for thecustomRendererrecord component.
-
-
Constructor Details
-
Unbaked
public Unbaked(Material stillMaterial, Material flowingMaterial, @Nullable Material overlayMaterial, @Nullable FluidTintSource fluidTintSource) -
Unbaked
@Deprecated public Unbaked(Material stillMaterial, Material flowingMaterial, @Nullable Material overlayMaterial, @Nullable BlockTintSource tintSource) Deprecated. -
Unbaked
public Unbaked(Material stillMaterial, Material flowingMaterial, @Nullable Material overlayMaterial, @Nullable FluidTintSource fluidTintSource, @Nullable CustomFluidRenderer customRenderer) Creates an instance of aUnbakedrecord class.- Parameters:
stillMaterial- the value for thestillMaterialrecord componentflowingMaterial- the value for theflowingMaterialrecord componentoverlayMaterial- the value for theoverlayMaterialrecord componentfluidTintSource- the value for thefluidTintSourcerecord componentcustomRenderer- the value for thecustomRendererrecord component
-
-
Method Details
-
tintSource
Deprecated.Neo: usefluidTintSource()instead -
bake
-
getTransparency
-
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). -
stillMaterial
Returns the value of thestillMaterialrecord component.- Returns:
- the value of the
stillMaterialrecord component
-
flowingMaterial
Returns the value of theflowingMaterialrecord component.- Returns:
- the value of the
flowingMaterialrecord component
-
overlayMaterial
Returns the value of theoverlayMaterialrecord component.- Returns:
- the value of the
overlayMaterialrecord component
-
fluidTintSource
Returns the value of thefluidTintSourcerecord component.- Returns:
- the value of the
fluidTintSourcerecord component
-
customRenderer
Returns the value of thecustomRendererrecord component.- Returns:
- the value of the
customRendererrecord component
-
Unbaked(Material, Material, Material, net.neoforged.neoforge.client.fluid.FluidTintSource)instead