Class EntityPredicate.Extended

java.lang.Object
net.minecraft.predicate.entity.EntityPredicate.Extended
Enclosing class:
EntityPredicate

public static class EntityPredicate.Extended extends Object
Mappings:
Namespace Name
official bn$b
intermediary net/minecraft/class_2048$class_5258
named net/minecraft/predicate/entity/EntityPredicate$Extended
  • Field Details

    • EMPTY

      public static final EntityPredicate.Extended EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lbn$b;a:Lbn$b;
      intermediary field_24388 Lnet/minecraft/class_2048$class_5258;field_24388:Lnet/minecraft/class_2048$class_5258;
      named EMPTY Lnet/minecraft/predicate/entity/EntityPredicate$Extended;EMPTY:Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
    • conditions

      private final LootCondition[] conditions
      Mappings:
      Namespace Name Mixin selector
      official b Lbn$b;b:[Lebl;
      intermediary field_24389 Lnet/minecraft/class_2048$class_5258;field_24389:[Lnet/minecraft/class_5341;
      named conditions Lnet/minecraft/predicate/entity/EntityPredicate$Extended;conditions:[Lnet/minecraft/loot/condition/LootCondition;
    • combinedCondition

      private final Predicate<LootContext> combinedCondition
      Mappings:
      Namespace Name Mixin selector
      official c Lbn$b;c:Ljava/util/function/Predicate;
      intermediary field_24390 Lnet/minecraft/class_2048$class_5258;field_24390:Ljava/util/function/Predicate;
      named combinedCondition Lnet/minecraft/predicate/entity/EntityPredicate$Extended;combinedCondition:Ljava/util/function/Predicate;
  • Constructor Details

    • Extended

      private Extended(LootCondition[] conditions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbn$b;<init>([Lebl;)V
      intermediary <init> Lnet/minecraft/class_2048$class_5258;<init>([Lnet/minecraft/class_5341;)V
      named <init> Lnet/minecraft/predicate/entity/EntityPredicate$Extended;<init>([Lnet/minecraft/loot/condition/LootCondition;)V
  • Method Details

    • create

      public static EntityPredicate.Extended create(LootCondition[] conditions)
      Mappings:
      Namespace Name Mixin selector
      official a Lbn$b;a([Lebl;)Lbn$b;
      intermediary method_27973 Lnet/minecraft/class_2048$class_5258;method_27973([Lnet/minecraft/class_5341;)Lnet/minecraft/class_2048$class_5258;
      named create Lnet/minecraft/predicate/entity/EntityPredicate$Extended;create([Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
    • getInJson

      public static EntityPredicate.Extended getInJson(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer)
      Parses an extended entity check in a sub-value in JSON, accepting objects as simple entity predicates or array as list of loot conditions.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbn$b;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lbd;)Lbn$b;
      intermediary method_27805 Lnet/minecraft/class_2048$class_5258;method_27805(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2048$class_5258;
      named getInJson Lnet/minecraft/predicate/entity/EntityPredicate$Extended;getInJson(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
    • requireInJson

      public static EntityPredicate.Extended[] requireInJson(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer)
      Parses an extended entity check in a sub-value in JSON. The value must be absent, JSON null, or an array, or the parser will error. In other words, it does not accept object sub-values.
      Mappings:
      Namespace Name Mixin selector
      official b Lbn$b;b(Lcom/google/gson/JsonObject;Ljava/lang/String;Lbd;)[Lbn$b;
      intermediary method_27809 Lnet/minecraft/class_2048$class_5258;method_27809(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_5257;)[Lnet/minecraft/class_2048$class_5258;
      named requireInJson Lnet/minecraft/predicate/entity/EntityPredicate$Extended;requireInJson(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)[Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
    • fromJson

      private static EntityPredicate.Extended fromJson(String key, AdvancementEntityPredicateDeserializer predicateDeserializer, @Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbn$b;a(Ljava/lang/String;Lbd;Lcom/google/gson/JsonElement;)Lbn$b;
      intermediary method_27807 Lnet/minecraft/class_2048$class_5258;method_27807(Ljava/lang/String;Lnet/minecraft/class_5257;Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2048$class_5258;
      named fromJson Lnet/minecraft/predicate/entity/EntityPredicate$Extended;fromJson(Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
    • ofLegacy

      public static EntityPredicate.Extended ofLegacy(EntityPredicate predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbn$b;a(Lbn;)Lbn$b;
      intermediary method_27803 Lnet/minecraft/class_2048$class_5258;method_27803(Lnet/minecraft/class_2048;)Lnet/minecraft/class_2048$class_5258;
      named ofLegacy Lnet/minecraft/predicate/entity/EntityPredicate$Extended;ofLegacy(Lnet/minecraft/predicate/entity/EntityPredicate;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
    • test

      public boolean test(LootContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Lbn$b;a(Ldyr;)Z
      intermediary method_27806 Lnet/minecraft/class_2048$class_5258;method_27806(Lnet/minecraft/class_47;)Z
      named test Lnet/minecraft/predicate/entity/EntityPredicate$Extended;test(Lnet/minecraft/loot/context/LootContext;)Z
    • toJson

      public JsonElement toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Mappings:
      Namespace Name Mixin selector
      official a Lbn$b;a(Lcs;)Lcom/google/gson/JsonElement;
      intermediary method_27804 Lnet/minecraft/class_2048$class_5258;method_27804(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/entity/EntityPredicate$Extended;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonElement;
    • toPredicatesJsonArray

      public static JsonElement toPredicatesJsonArray(EntityPredicate.Extended[] predicates, AdvancementEntityPredicateSerializer predicateSerializer)
      Mappings:
      Namespace Name Mixin selector
      official a Lbn$b;a([Lbn$b;Lcs;)Lcom/google/gson/JsonElement;
      intermediary method_27808 Lnet/minecraft/class_2048$class_5258;method_27808([Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_5267;)Lcom/google/gson/JsonElement;
      named toPredicatesJsonArray Lnet/minecraft/predicate/entity/EntityPredicate$Extended;toPredicatesJsonArray([Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonElement;