Package net.minecraft.entity
Record Class VariantSelectorProvider.Selector<Context,Condition extends VariantSelectorProvider.SelectorCondition<Context>>
java.lang.Object
java.lang.Record
net.minecraft.entity.VariantSelectorProvider.Selector<Context,Condition>
- Record Components:
condition-priority-
- Enclosing interface:
VariantSelectorProvider<Context,Condition extends VariantSelectorProvider.SelectorCondition<Context>>
public static record VariantSelectorProvider.Selector<Context,Condition extends VariantSelectorProvider.SelectorCondition<Context>> (Optional<Condition extends VariantSelectorProvider.SelectorCondition<Context>> condition, int priority)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/VariantSelectorProvider$Selectorintermediary net/minecraft/class_10695$class_10696official cul$anamed conditionintermediary comp_3575official anamed priorityintermediary comp_3576official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.static <Context,Condition extends VariantSelectorProvider.SelectorCondition<Context>>
com.mojang.serialization.Codec<VariantSelectorProvider.Selector<Context, Condition>> createCodec(com.mojang.serialization.Codec<Condition> conditionCodec) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Selector
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/VariantSelectorProvider$Selector;<init>(Lnet/minecraft/entity/VariantSelectorProvider$SelectorCondition;I)Vintermediary <init>Lnet/minecraft/class_10695$class_10696;<init>(Lnet/minecraft/class_10695$class_10697;I)Vofficial <init>Lcul$a;<init>(Lcul$b;I)V
-
Selector
public Selector(int priority) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/VariantSelectorProvider$Selector;<init>(I)Vintermediary <init>Lnet/minecraft/class_10695$class_10696;<init>(I)Vofficial <init>Lcul$a;<init>(I)V
-
Selector
-
-
Method Details
-
createCodec
public static <Context,Condition extends VariantSelectorProvider.SelectorCondition<Context>> com.mojang.serialization.Codec<VariantSelectorProvider.Selector<Context,Condition>> createCodec(com.mojang.serialization.Codec<Condition> conditionCodec) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/entity/VariantSelectorProvider$Selector;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;intermediary method_67164Lnet/minecraft/class_10695$class_10696;method_67164(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;official aLcul$a;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-