Record Class EntityPredicate

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

Mappings:
Namespace Name
named net/minecraft/predicate/entity/EntityPredicate
intermediary net/minecraft/class_2048
official bx
named type
intermediary comp_1761
official c
named distance
intermediary comp_1762
official d
named movement
intermediary comp_2668
official e
named location
intermediary comp_1763
official f
named effects
intermediary comp_1765
official g
named nbt
intermediary comp_1766
official h
named flags
intermediary comp_1767
official i
named equipment
intermediary comp_1768
official j
named typeSpecific
intermediary comp_1769
official k
named periodicTick
intermediary comp_2669
official l
named vehicle
intermediary comp_1770
official m
named passenger
intermediary comp_1771
official n
named targetedEntity
intermediary comp_1772
official o
named team
intermediary comp_1773
official p
named slots
intermediary comp_2446
official q
  • Field Details Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • contextPredicateFromEntityPredicate Link icon

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

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

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

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

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

      public boolean test(ServerWorld world, @Nullable @Nullable Vec3d pos, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/entity/EntityPredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;)Z
      intermediary method_8909 Lnet/minecraft/class_2048;method_8909(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_1297;)Z
      official a Lbx;a(Lard;Lfbb;Lbum;)Z
    • createAdvancementEntityLootContext Link icon

      public static LootContext createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
      Mappings:
      Namespace Name Mixin selector
      named createAdvancementEntityLootContext Lnet/minecraft/predicate/entity/EntityPredicate;createAdvancementEntityLootContext(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/loot/context/LootContext;
      intermediary method_27802 Lnet/minecraft/class_2048;method_27802(Lnet/minecraft/class_3222;Lnet/minecraft/class_1297;)Lnet/minecraft/class_47;
      official b Lbx;b(Lare;Lbum;)Levs;
    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

      public Optional<MovementPredicate> movement()
      Returns the value of the movement record component.
      Returns:
      the value of the movement record component
    • location Link icon

      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • effects Link icon

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

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

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

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

      public Optional<EntitySubPredicate> typeSpecific()
      Returns the value of the typeSpecific record component.
      Returns:
      the value of the typeSpecific record component
    • periodicTick Link icon

      public Optional<Integer> periodicTick()
      Returns the value of the periodicTick record component.
      Returns:
      the value of the periodicTick record component
    • vehicle Link icon

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

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

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

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

      public Optional<SlotsPredicate> slots()
      Returns the value of the slots record component.
      Returns:
      the value of the slots record component