Package net.minecraft
Record Class class_9545.class_9549
java.lang.Object
java.lang.Record
net.minecraft.class_9545.class_9549
- Record Components:
player-resultPredicate-
- All Implemented Interfaces:
AbstractCriterion.Conditions,CriterionConditions
- Enclosing class:
class_9545
public static record class_9545.class_9549(Optional<LootContextPredicate> player, class_9545.class_9546 resultPredicate)
extends Record
implements AbstractCriterion.Conditions
- Mappings:
Namespace Name official dd$dintermediary net/minecraft/class_9545$class_9549named net/minecraft/class_9545$class_9549official bintermediary comp_2029named playerofficial cintermediary comp_2581named resultPredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<class_9545.class_9549> private final Optional<LootContextPredicate> The field for theplayerrecord component.private final class_9545.class_9546The field for theresultPredicaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9549(Optional<LootContextPredicate> optional, class_9545.class_9546 class_9546) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method_59100(int int2) method_59101(ItemPredicate itemPredicate, int int2) method_59103(Item item) booleanmethod_59104(ItemStack itemStack) player()Returns the value of theresultPredicaterecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.advancement.criterion.AbstractCriterion.Conditions
validate
-
Field Details
-
player
The field for theplayerrecord component. -
resultPredicate
The field for theresultPredicaterecord component. -
field_50741
- Mappings:
Namespace Name Mixin selector official aLdd$d;a:Lcom/mojang/serialization/Codec;intermediary field_50741Lnet/minecraft/class_9545$class_9549;field_50741:Lcom/mojang/serialization/Codec;named field_50741Lnet/minecraft/class_9545$class_9549;field_50741:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_9549
-
-
Method Details
-
method_59103
- Mappings:
Namespace Name Mixin selector official aLdd$d;a(Lcuc;)Lao;intermediary method_59103Lnet/minecraft/class_9545$class_9549;method_59103(Lnet/minecraft/class_1792;)Lnet/minecraft/class_175;named method_59103Lnet/minecraft/class_9545$class_9549;method_59103(Lnet/minecraft/item/Item;)Lnet/minecraft/advancement/AdvancementCriterion;
-
method_59100
- Mappings:
Namespace Name Mixin selector official aLdd$d;a(I)Lao;intermediary method_59100Lnet/minecraft/class_9545$class_9549;method_59100(I)Lnet/minecraft/class_175;named method_59100Lnet/minecraft/class_9545$class_9549;method_59100(I)Lnet/minecraft/advancement/AdvancementCriterion;
-
method_59101
public static AdvancementCriterion<class_9545.class_9549> method_59101(ItemPredicate itemPredicate, int int2) - Mappings:
Namespace Name Mixin selector official aLdd$d;a(Lci;I)Lao;intermediary method_59101Lnet/minecraft/class_9545$class_9549;method_59101(Lnet/minecraft/class_2073;I)Lnet/minecraft/class_175;named method_59101Lnet/minecraft/class_9545$class_9549;method_59101(Lnet/minecraft/predicate/item/ItemPredicate;I)Lnet/minecraft/advancement/AdvancementCriterion;
-
method_59104
- Mappings:
Namespace Name Mixin selector official aLdd$d;a(Lcuh;)Zintermediary method_59104Lnet/minecraft/class_9545$class_9549;method_59104(Lnet/minecraft/class_1799;)Znamed method_59104Lnet/minecraft/class_9545$class_9549;method_59104(Lnet/minecraft/item/ItemStack;)Z
-
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). -
player
- Specified by:
playerin interfaceAbstractCriterion.Conditions- Mappings:
Namespace Name Mixin selector official aLdh$a;a()Ljava/util/Optional;intermediary comp_2029Lnet/minecraft/class_4558$class_8788;comp_2029()Ljava/util/Optional;named playerLnet/minecraft/advancement/criterion/AbstractCriterion$Conditions;player()Ljava/util/Optional;
-
resultPredicate
Returns the value of theresultPredicaterecord component.- Returns:
- the value of the
resultPredicaterecord component
-