Record Class WeightedVariants.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.WeightedVariants.Unbaked
- All Implemented Interfaces:
BlockStateModel.Unbaked
,ResolvableModel
- Enclosing class:
WeightedVariants
public static record WeightedVariants.Unbaked(WeightedList<BlockStateModel.Unbaked> entries)
extends Record
implements BlockStateModel.Unbaked
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
ResolvableModel.Resolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WeightedList
<BlockStateModel.Unbaked> The field for theentries
record component.Fields inherited from interface net.minecraft.client.renderer.block.model.BlockStateModel.Unbaked
CODEC, ELEMENT_CODEC, HARDCODED_WEIGHTED_CODEC, SINGLE_MODEL_CODEC, WEIGHTED_MODEL_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionUnbaked
(WeightedList<BlockStateModel.Unbaked> entries) Creates an instance of aUnbaked
record class. -
Method Summary
Modifier and TypeMethodDescriptionbake
(ModelBaker p_410875_) entries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.void
resolveDependencies
(ResolvableModel.Resolver p_409900_) final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.block.model.BlockStateModel.Unbaked
asRoot
-
Field Details
-
entries
The field for theentries
record component.
-
-
Constructor Details
-
Unbaked
Creates an instance of aUnbaked
record class.- Parameters:
entries
- the value for theentries
record component
-
-
Method Details
-
bake
- Specified by:
bake
in interfaceBlockStateModel.Unbaked
-
resolveDependencies
- Specified by:
resolveDependencies
in interfaceResolvableModel
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
entries
Returns the value of theentries
record component.- Returns:
- the value of the
entries
record component
-