Record Class EntityPredicate

java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.EntityPredicate
Record Components:
type -
distance -
location -
steppingOn -
effects -
nbt -
flags -
equipment -
typeSpecific -
vehicle -
passenger -
targetedEntity -
team -

Mappings:
Namespace Name
official bq
intermediary net/minecraft/class_2048
named net/minecraft/predicate/entity/EntityPredicate
official b
intermediary comp_1761
named type
official c
intermediary comp_1762
named distance
official d
intermediary comp_1763
named location
official e
intermediary comp_1764
named steppingOn
official f
intermediary comp_1765
named effects
official g
intermediary comp_1766
named nbt
official h
intermediary comp_1767
named flags
official i
intermediary comp_1768
named equipment
official j
intermediary comp_1769
named typeSpecific
official k
intermediary comp_1770
named vehicle
official l
intermediary comp_1771
named passenger
official m
intermediary comp_1772
named targetedEntity
official n
intermediary comp_1773
named team
  • Field Details

  • Constructor Details

  • Method Details

    • contextPredicateFromJson

      public static Optional<LootContextPredicate> contextPredicateFromJson(com.google.gson.JsonObject json, String key, AdvancementEntityPredicateDeserializer predicateDeserializer)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lbg;)Ljava/util/Optional;
      intermediary method_51705 Lnet/minecraft/class_2048;method_51705(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_5257;)Ljava/util/Optional;
      named contextPredicateFromJson Lnet/minecraft/predicate/entity/EntityPredicate;contextPredicateFromJson(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Ljava/util/Optional;
    • contextPredicateArrayFromJson

      public static List<LootContextPredicate> contextPredicateArrayFromJson(com.google.gson.JsonObject json, String key, AdvancementEntityPredicateDeserializer predicateDeserializer)
      Mappings:
      Namespace Name Mixin selector
      official b Lbq;b(Lcom/google/gson/JsonObject;Ljava/lang/String;Lbg;)Ljava/util/List;
      intermediary method_51707 Lnet/minecraft/class_2048;method_51707(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_5257;)Ljava/util/List;
      named contextPredicateArrayFromJson Lnet/minecraft/predicate/entity/EntityPredicate;contextPredicateArrayFromJson(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Ljava/util/List;
    • contextPredicateFromJsonElement

      private static Optional<LootContextPredicate> contextPredicateFromJsonElement(String key, AdvancementEntityPredicateDeserializer predicateDeserializer, @Nullable @Nullable com.google.gson.JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Ljava/lang/String;Lbg;Lcom/google/gson/JsonElement;)Ljava/util/Optional;
      intermediary method_51706 Lnet/minecraft/class_2048;method_51706(Ljava/lang/String;Lnet/minecraft/class_5257;Lcom/google/gson/JsonElement;)Ljava/util/Optional;
      named contextPredicateFromJsonElement Lnet/minecraft/predicate/entity/EntityPredicate;contextPredicateFromJsonElement(Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;Lcom/google/gson/JsonElement;)Ljava/util/Optional;
    • contextPredicateFromEntityPredicate

      public static LootContextPredicate contextPredicateFromEntityPredicate(EntityPredicate.Builder builder)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lbq$a;)Lbc;
      intermediary method_53134 Lnet/minecraft/class_2048;method_53134(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_5258;
      named contextPredicateFromEntityPredicate Lnet/minecraft/predicate/entity/EntityPredicate;contextPredicateFromEntityPredicate(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/predicate/entity/LootContextPredicate;
    • contextPredicateFromEntityPredicate

      public static Optional<LootContextPredicate> contextPredicateFromEntityPredicate(Optional<EntityPredicate> entityPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Ljava/util/Optional;)Ljava/util/Optional;
      intermediary method_53137 Lnet/minecraft/class_2048;method_53137(Ljava/util/Optional;)Ljava/util/Optional;
      named contextPredicateFromEntityPredicate Lnet/minecraft/predicate/entity/EntityPredicate;contextPredicateFromEntityPredicate(Ljava/util/Optional;)Ljava/util/Optional;
    • contextPredicateFromEntityPredicates

      public static List<LootContextPredicate> contextPredicateFromEntityPredicates(EntityPredicate.Builder[] builders)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a([Lbq$a;)Ljava/util/List;
      intermediary method_53139 Lnet/minecraft/class_2048;method_53139([Lnet/minecraft/class_2048$class_2049;)Ljava/util/List;
      named contextPredicateFromEntityPredicates Lnet/minecraft/predicate/entity/EntityPredicate;contextPredicateFromEntityPredicates([Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Ljava/util/List;
    • asLootContextPredicate

      public static LootContextPredicate asLootContextPredicate(EntityPredicate predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lbq;)Lbc;
      intermediary method_51704 Lnet/minecraft/class_2048;method_51704(Lnet/minecraft/class_2048;)Lnet/minecraft/class_5258;
      named asLootContextPredicate Lnet/minecraft/predicate/entity/EntityPredicate;asLootContextPredicate(Lnet/minecraft/predicate/entity/EntityPredicate;)Lnet/minecraft/predicate/entity/LootContextPredicate;
    • test

      public boolean test(ServerPlayerEntity player, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lakr;Lbiq;)Z
      intermediary method_8914 Lnet/minecraft/class_2048;method_8914(Lnet/minecraft/class_3222;Lnet/minecraft/class_1297;)Z
      named test Lnet/minecraft/predicate/entity/EntityPredicate;test(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/Entity;)Z
    • test

      public boolean test(ServerWorld world, @Nullable @Nullable Vec3d pos, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lakq;Lehn;Lbiq;)Z
      intermediary method_8909 Lnet/minecraft/class_2048;method_8909(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_1297;)Z
      named test Lnet/minecraft/predicate/entity/EntityPredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;)Z
    • fromJson

      public static Optional<EntityPredicate> fromJson(@Nullable @Nullable com.google.gson.JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lcom/google/gson/JsonElement;)Ljava/util/Optional;
      intermediary method_8913 Lnet/minecraft/class_2048;method_8913(Lcom/google/gson/JsonElement;)Ljava/util/Optional;
      named fromJson Lnet/minecraft/predicate/entity/EntityPredicate;fromJson(Lcom/google/gson/JsonElement;)Ljava/util/Optional;
    • toJson

      public com.google.gson.JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a()Lcom/google/gson/JsonElement;
      intermediary method_8912 Lnet/minecraft/class_2048;method_8912()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/entity/EntityPredicate;toJson()Lcom/google/gson/JsonElement;
    • createAdvancementEntityLootContext

      public static LootContext createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
      Mappings:
      Namespace Name Mixin selector
      official b Lbq;b(Lakr;Lbiq;)Lecq;
      intermediary method_27802 Lnet/minecraft/class_2048;method_27802(Lnet/minecraft/class_3222;Lnet/minecraft/class_1297;)Lnet/minecraft/class_47;
      named createAdvancementEntityLootContext Lnet/minecraft/predicate/entity/EntityPredicate;createAdvancementEntityLootContext(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/loot/context/LootContext;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • type

      public Optional<EntityTypePredicate> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • distance

      public Optional<DistancePredicate> distance()
      Returns the value of the distance record component.
      Returns:
      the value of the distance record component
    • location

      public Optional<LocationPredicate> location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • steppingOn

      public Optional<LocationPredicate> steppingOn()
      Returns the value of the steppingOn record component.
      Returns:
      the value of the steppingOn record component
    • effects

      public Optional<EntityEffectPredicate> effects()
      Returns the value of the effects record component.
      Returns:
      the value of the effects record component
    • nbt

      public Optional<NbtPredicate> nbt()
      Returns the value of the nbt record component.
      Returns:
      the value of the nbt record component
    • flags

      public Optional<EntityFlagsPredicate> flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component
    • equipment

      public Optional<EntityEquipmentPredicate> equipment()
      Returns the value of the equipment record component.
      Returns:
      the value of the equipment record component
    • typeSpecific

      public Optional<TypeSpecificPredicate> typeSpecific()
      Returns the value of the typeSpecific record component.
      Returns:
      the value of the typeSpecific record component
    • vehicle

      public Optional<EntityPredicate> vehicle()
      Returns the value of the vehicle record component.
      Returns:
      the value of the vehicle record component
    • passenger

      public Optional<EntityPredicate> passenger()
      Returns the value of the passenger record component.
      Returns:
      the value of the passenger record component
    • targetedEntity

      public Optional<EntityPredicate> targetedEntity()
      Returns the value of the targetedEntity record component.
      Returns:
      the value of the targetedEntity record component
    • team

      public Optional<String> team()
      Returns the value of the team record component.
      Returns:
      the value of the team record component