Record Class DynamicFluidContainerModel.Unbaked
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.item.DynamicFluidContainerModel.Unbaked
- All Implemented Interfaces:
net.minecraft.client.renderer.item.ItemModel.Unbaked
,net.minecraft.client.resources.model.ResolvableModel
- Enclosing class:
DynamicFluidContainerModel
public static record DynamicFluidContainerModel.Unbaked(DynamicFluidContainerModel.Textures textures, net.minecraft.world.level.material.Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity)
extends Record
implements net.minecraft.client.renderer.item.ItemModel.Unbaked
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
net.minecraft.client.resources.model.ResolvableModel.Resolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for theapplyFluidLuminosity
record component.private final boolean
The field for thecoverIsMask
record component.private final boolean
The field for theflipGas
record component.private final net.minecraft.world.level.material.Fluid
The field for thefluid
record component.static final com.mojang.serialization.MapCodec
<DynamicFluidContainerModel.Unbaked> private final DynamicFluidContainerModel.Textures
The field for thetextures
record component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked
(DynamicFluidContainerModel.Textures textures, net.minecraft.world.level.material.Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity) Creates an instance of aUnbaked
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theapplyFluidLuminosity
record component.net.minecraft.client.renderer.item.ItemModel
bake
(net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext) boolean
Returns the value of thecoverIsMask
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
flipGas()
Returns the value of theflipGas
record component.net.minecraft.world.level.material.Fluid
fluid()
Returns the value of thefluid
record component.final int
hashCode()
Returns a hash code value for this object.void
resolveDependencies
(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) textures()
Returns the value of thetextures
record component.final String
toString()
Returns a string representation of this record class.com.mojang.serialization.MapCodec
<? extends net.minecraft.client.renderer.item.ItemModel.Unbaked> type()
-
Field Details
-
textures
The field for thetextures
record component. -
fluid
private final net.minecraft.world.level.material.Fluid fluidThe field for thefluid
record component. -
flipGas
private final boolean flipGasThe field for theflipGas
record component. -
coverIsMask
private final boolean coverIsMaskThe field for thecoverIsMask
record component. -
applyFluidLuminosity
private final boolean applyFluidLuminosityThe field for theapplyFluidLuminosity
record component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked(DynamicFluidContainerModel.Textures textures, net.minecraft.world.level.material.Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity) Creates an instance of aUnbaked
record class.- Parameters:
textures
- the value for thetextures
record componentfluid
- the value for thefluid
record componentflipGas
- the value for theflipGas
record componentcoverIsMask
- the value for thecoverIsMask
record componentapplyFluidLuminosity
- the value for theapplyFluidLuminosity
record component
-
-
Method Details
-
type
public com.mojang.serialization.MapCodec<? extends net.minecraft.client.renderer.item.ItemModel.Unbaked> type()- Specified by:
type
in interfacenet.minecraft.client.renderer.item.ItemModel.Unbaked
-
bake
public net.minecraft.client.renderer.item.ItemModel bake(net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext) - Specified by:
bake
in interfacenet.minecraft.client.renderer.item.ItemModel.Unbaked
-
resolveDependencies
public void resolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) - Specified by:
resolveDependencies
in interfacenet.minecraft.client.resources.model.ResolvableModel
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
textures
Returns the value of thetextures
record component.- Returns:
- the value of the
textures
record component
-
fluid
public net.minecraft.world.level.material.Fluid fluid()Returns the value of thefluid
record component.- Returns:
- the value of the
fluid
record component
-
flipGas
public boolean flipGas()Returns the value of theflipGas
record component.- Returns:
- the value of the
flipGas
record component
-
coverIsMask
public boolean coverIsMask()Returns the value of thecoverIsMask
record component.- Returns:
- the value of the
coverIsMask
record component
-
applyFluidLuminosity
public boolean applyFluidLuminosity()Returns the value of theapplyFluidLuminosity
record component.- Returns:
- the value of the
applyFluidLuminosity
record component
-