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 thecoloringValuesrecord component.private final ObjectThe field for theequalityGrouprecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoloringValuesrecord component.static ModelGroupCollector.GroupKeycreate(BlockState state, BlockStateModel.UnbakedRoot model, List<Property<?>> coloringProperties) Returns the value of theequalityGrouprecord component.final booleanIndicates whether some other object is "equal to" this one.getColoringValues(BlockState state, List<Property<?>> coloringProperties) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
equalityGroup
The field for theequalityGrouprecord component. -
coloringValues
-
-
Constructor Details
-
GroupKey
-
-
Method Details
-
create
public static ModelGroupCollector.GroupKey create(BlockState state, BlockStateModel.UnbakedRoot model, List<Property<?>> coloringProperties) -
getColoringValues
private static List<Object> getColoringValues(BlockState state, List<Property<?>> coloringProperties) -
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). -
equalityGroup
Returns the value of theequalityGrouprecord component.- Returns:
- the value of the
equalityGrouprecord component
-
coloringValues
-