Record Class MultiVariant
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.MultiVariant
- All Implemented Interfaces:
UnbakedBlockStateModel
,ResolvableModel
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
ResolvableModel.Resolver
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultiVariant
(List<Variant> variants) Creates an instance of aMultiVariant
record class. -
Method Summary
Modifier and TypeMethodDescriptionbake
(ModelBaker p_249016_) 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_387350_) final String
toString()
Returns a string representation of this record class.variants()
Returns the value of thevariants
record component.visualEqualityGroup
(BlockState p_360999_)
-
Field Details
-
variants
The field for thevariants
record component.
-
-
Constructor Details
-
MultiVariant
Creates an instance of aMultiVariant
record class.- Parameters:
variants
- the value for thevariants
record component
-
-
Method Details
-
visualEqualityGroup
- Specified by:
visualEqualityGroup
in interfaceUnbakedBlockStateModel
-
resolveDependencies
- Specified by:
resolveDependencies
in interfaceResolvableModel
-
bake
- Specified by:
bake
in interfaceUnbakedBlockStateModel
-
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)
. -
variants
Returns the value of thevariants
record component.- Returns:
- the value of the
variants
record component
-