Class AdvancementCriterion

java.lang.Object
net.minecraft.advancement.AdvancementCriterion

public class AdvancementCriterion extends Object
Mappings:
Namespace Name
official aj
intermediary net/minecraft/class_175
named net/minecraft/advancement/AdvancementCriterion
  • Field Details

    • conditions

      @Nullable private final @Nullable CriterionConditions conditions
      Mappings:
      Namespace Name Mixin selector
      official a Laj;a:Lam;
      intermediary field_1214 Lnet/minecraft/class_175;field_1214:Lnet/minecraft/class_184;
      named conditions Lnet/minecraft/advancement/AdvancementCriterion;conditions:Lnet/minecraft/advancement/criterion/CriterionConditions;
  • Constructor Details

    • AdvancementCriterion

      public AdvancementCriterion(CriterionConditions conditions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laj;<init>(Lam;)V
      intermediary <init> Lnet/minecraft/class_175;<init>(Lnet/minecraft/class_184;)V
      named <init> Lnet/minecraft/advancement/AdvancementCriterion;<init>(Lnet/minecraft/advancement/criterion/CriterionConditions;)V
    • AdvancementCriterion

      public AdvancementCriterion()
  • Method Details

    • toPacket

      public void toPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Laj;a(Lsf;)V
      intermediary method_771 Lnet/minecraft/class_175;method_771(Lnet/minecraft/class_2540;)V
      named toPacket Lnet/minecraft/advancement/AdvancementCriterion;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
    • fromJson

      public static AdvancementCriterion fromJson(JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer)
      Mappings:
      Namespace Name Mixin selector
      official a Laj;a(Lcom/google/gson/JsonObject;Lbe;)Laj;
      intermediary method_770 Lnet/minecraft/class_175;method_770(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Lnet/minecraft/class_175;
      named fromJson Lnet/minecraft/advancement/AdvancementCriterion;fromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/AdvancementCriterion;
    • fromPacket

      public static AdvancementCriterion fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Laj;b(Lsf;)Laj;
      intermediary method_769 Lnet/minecraft/class_175;method_769(Lnet/minecraft/class_2540;)Lnet/minecraft/class_175;
      named fromPacket Lnet/minecraft/advancement/AdvancementCriterion;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/AdvancementCriterion;
    • criteriaFromJson

      public static Map<String,AdvancementCriterion> criteriaFromJson(JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer)
      Mappings:
      Namespace Name Mixin selector
      official b Laj;b(Lcom/google/gson/JsonObject;Lbe;)Ljava/util/Map;
      intermediary method_772 Lnet/minecraft/class_175;method_772(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Ljava/util/Map;
      named criteriaFromJson Lnet/minecraft/advancement/AdvancementCriterion;criteriaFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Ljava/util/Map;
    • criteriaFromPacket

      public static Map<String,AdvancementCriterion> criteriaFromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official c Laj;c(Lsf;)Ljava/util/Map;
      intermediary method_768 Lnet/minecraft/class_175;method_768(Lnet/minecraft/class_2540;)Ljava/util/Map;
      named criteriaFromPacket Lnet/minecraft/advancement/AdvancementCriterion;criteriaFromPacket(Lnet/minecraft/network/PacketByteBuf;)Ljava/util/Map;
    • criteriaToPacket

      public static void criteriaToPacket(Map<String,AdvancementCriterion> criteria, PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Laj;a(Ljava/util/Map;Lsf;)V
      intermediary method_775 Lnet/minecraft/class_175;method_775(Ljava/util/Map;Lnet/minecraft/class_2540;)V
      named criteriaToPacket Lnet/minecraft/advancement/AdvancementCriterion;criteriaToPacket(Ljava/util/Map;Lnet/minecraft/network/PacketByteBuf;)V
    • getConditions

      @Nullable public @Nullable CriterionConditions getConditions()
      Mappings:
      Namespace Name Mixin selector
      official a Laj;a()Lam;
      intermediary method_774 Lnet/minecraft/class_175;method_774()Lnet/minecraft/class_184;
      named getConditions Lnet/minecraft/advancement/AdvancementCriterion;getConditions()Lnet/minecraft/advancement/criterion/CriterionConditions;
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official b Laj;b()Lcom/google/gson/JsonElement;
      intermediary method_773 Lnet/minecraft/class_175;method_773()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/advancement/AdvancementCriterion;toJson()Lcom/google/gson/JsonElement;