Record Class MultipartBakedModel.Selector
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.MultipartBakedModel.Selector
- Record Components:
condition
-model
-
- Enclosing class:
MultipartBakedModel
@Environment(CLIENT)
public static record MultipartBakedModel.Selector(Predicate<BlockState> condition, BakedModel model)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/MultipartBakedModel$Selector
intermediary net/minecraft/class_1095$class_10204
official hhk$a
named condition
intermediary comp_3203
official a
named model
intermediary comp_3204
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Predicate
<BlockState> The field for thecondition
record component.private final BakedModel
The field for themodel
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecondition
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.model()
Returns the value of themodel
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
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)
. -
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-