Record Class ModelGroupCollector.GroupKey
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.ModelGroupCollector.GroupKey
- Enclosing class:
ModelGroupCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecoloringValues
record component.private final Object
The field for theequalityGroup
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoloringValues
record component.static ModelGroupCollector.GroupKey
create
(BlockState p_361701_, BlockStateModel.UnbakedRoot p_409921_, List<Property<?>> p_362442_) Returns the value of theequalityGroup
record component.final boolean
Indicates whether some other object is "equal to" this one.getColoringValues
(BlockState p_362069_, List<Property<?>> p_363650_) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
equalityGroup
The field for theequalityGroup
record component. -
coloringValues
The field for thecoloringValues
record component.
-
-
Constructor Details
-
GroupKey
Creates an instance of aGroupKey
record class.- Parameters:
equalityGroup
- the value for theequalityGroup
record componentcoloringValues
- the value for thecoloringValues
record component
-
-
Method Details
-
create
public static ModelGroupCollector.GroupKey create(BlockState p_361701_, BlockStateModel.UnbakedRoot p_409921_, List<Property<?>> p_362442_) -
getColoringValues
-
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)
. -
equalityGroup
Returns the value of theequalityGroup
record component.- Returns:
- the value of the
equalityGroup
record component
-
coloringValues
Returns the value of thecoloringValues
record component.- Returns:
- the value of the
coloringValues
record component
-