Record Class MultipartBlockStateModel.Selector<T>
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.MultipartBlockStateModel.Selector<T>
- Record Components:
condition-model-
- Enclosing class:
MultipartBlockStateModel
@Environment(CLIENT)
public static record MultipartBlockStateModel.Selector<T>(Predicate<BlockState> condition, T model)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/MultipartBlockStateModel$Selectorintermediary net/minecraft/class_10895$class_10204official gtp$anamed conditionintermediary comp_3203official anamed modelintermediary comp_3204official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(S s) Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Selector
-
-
Method Details
-
build
- Mappings:
Namespace Name Mixin selector named buildLnet/minecraft/client/render/model/MultipartBlockStateModel$Selector;build(Ljava/lang/Object;)Lnet/minecraft/client/render/model/MultipartBlockStateModel$Selector;intermediary method_68527Lnet/minecraft/class_10895$class_10204;method_68527(Ljava/lang/Object;)Lnet/minecraft/class_10895$class_10204;official aLgtp$a;a(Ljava/lang/Object;)Lgtp$a;
-
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 theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-