Class TameAnimalCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.TameAnimalCriterion.Conditions
All Implemented Interfaces:
CriterionConditions
Enclosing class:
TameAnimalCriterion

public static class TameAnimalCriterion.Conditions
extends AbstractCriterionConditions
Mappings:
Namespace Name
official co$a
intermediary net/minecraft/class_2131$class_2133
named net/minecraft/advancement/criterion/TameAnimalCriterion$Conditions
  • Field Details

    • entity

      private final EntityPredicate.Extended entity
      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a:Lbg$b;
      intermediary field_9757 Lnet/minecraft/class_2131$class_2133;field_9757:Lnet/minecraft/class_2048$class_5258;
      named entity Lnet/minecraft/advancement/criterion/TameAnimalCriterion$Conditions;entity:Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
  • Constructor Details

    • Conditions

      public Conditions​(EntityPredicate.Extended player, EntityPredicate.Extended entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lco$a;<init>(Lbg$b;Lbg$b;)V
      intermediary <init> Lnet/minecraft/class_2131$class_2133;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2048$class_5258;)V
      named <init> Lnet/minecraft/advancement/criterion/TameAnimalCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;)V
  • Method Details

    • any

      public static TameAnimalCriterion.Conditions any()
      Mappings:
      Namespace Name Mixin selector
      official c Lco$a;c()Lco$a;
      intermediary method_9138 Lnet/minecraft/class_2131$class_2133;method_9138()Lnet/minecraft/class_2131$class_2133;
      named any Lnet/minecraft/advancement/criterion/TameAnimalCriterion$Conditions;any()Lnet/minecraft/advancement/criterion/TameAnimalCriterion$Conditions;
    • create

      public static TameAnimalCriterion.Conditions create​(EntityPredicate entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a(Lbg;)Lco$a;
      intermediary method_16114 Lnet/minecraft/class_2131$class_2133;method_16114(Lnet/minecraft/class_2048;)Lnet/minecraft/class_2131$class_2133;
      named create Lnet/minecraft/advancement/criterion/TameAnimalCriterion$Conditions;create(Lnet/minecraft/predicate/entity/EntityPredicate;)Lnet/minecraft/advancement/criterion/TameAnimalCriterion$Conditions;
    • matches

      public boolean matches​(LootContext tamedEntityContext)
      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a(Ldei;)Z
      intermediary method_9139 Lnet/minecraft/class_2131$class_2133;method_9139(Lnet/minecraft/class_47;)Z
      named matches Lnet/minecraft/advancement/criterion/TameAnimalCriterion$Conditions;matches(Lnet/minecraft/loot/context/LootContext;)Z
    • toJson

      public JsonObject toJson​(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lag;a(Lci;)Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;