Class EntityPredicates

java.lang.Object
net.minecraft.predicate.entity.EntityPredicates

public final class EntityPredicates extends Object
Mappings:
Namespace Name
official bat
intermediary net/minecraft/class_1301
named net/minecraft/predicate/entity/EntityPredicates
  • Field Details

    • VALID_ENTITY

      public static final Predicate<Entity> VALID_ENTITY
      Tests if an entity is valid.

      An entity is valid when the entity is alive.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbat;a:Ljava/util/function/Predicate;
      intermediary field_6154 Lnet/minecraft/class_1301;field_6154:Ljava/util/function/Predicate;
      named VALID_ENTITY Lnet/minecraft/predicate/entity/EntityPredicates;VALID_ENTITY:Ljava/util/function/Predicate;
    • VALID_LIVING_ENTITY

      public static final Predicate<Entity> VALID_LIVING_ENTITY
      Tests if a living entity is valid.

      A living entity is valid when the entity is alive.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbat;b:Ljava/util/function/Predicate;
      intermediary field_6157 Lnet/minecraft/class_1301;field_6157:Ljava/util/function/Predicate;
      named VALID_LIVING_ENTITY Lnet/minecraft/predicate/entity/EntityPredicates;VALID_LIVING_ENTITY:Ljava/util/function/Predicate;
    • NOT_MOUNTED

      public static final Predicate<Entity> NOT_MOUNTED
      Tests if an entity is not mounted.

      An entity is not mounted when:

      • The entity is alive
      • The entity has no passengers
      • The entity is not in a vehicle
      Mappings:
      Namespace Name Mixin selector
      official c Lbat;c:Ljava/util/function/Predicate;
      intermediary field_6153 Lnet/minecraft/class_1301;field_6153:Ljava/util/function/Predicate;
      named NOT_MOUNTED Lnet/minecraft/predicate/entity/EntityPredicates;NOT_MOUNTED:Ljava/util/function/Predicate;
    • VALID_INVENTORIES

      public static final Predicate<Entity> VALID_INVENTORIES
      Tests if an entity has a valid inventory.

      An entity has a valid inventory when:

      • The entity is alive
      • The entity implements Inventory
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbat;d:Ljava/util/function/Predicate;
      intermediary field_6152 Lnet/minecraft/class_1301;field_6152:Ljava/util/function/Predicate;
      named VALID_INVENTORIES Lnet/minecraft/predicate/entity/EntityPredicates;VALID_INVENTORIES:Ljava/util/function/Predicate;
    • EXCEPT_CREATIVE_OR_SPECTATOR

      public static final Predicate<Entity> EXCEPT_CREATIVE_OR_SPECTATOR
      Mappings:
      Namespace Name Mixin selector
      official e Lbat;e:Ljava/util/function/Predicate;
      intermediary field_6156 Lnet/minecraft/class_1301;field_6156:Ljava/util/function/Predicate;
      named EXCEPT_CREATIVE_OR_SPECTATOR Lnet/minecraft/predicate/entity/EntityPredicates;EXCEPT_CREATIVE_OR_SPECTATOR:Ljava/util/function/Predicate;
    • EXCEPT_SPECTATOR

      public static final Predicate<Entity> EXCEPT_SPECTATOR
      Mappings:
      Namespace Name Mixin selector
      official f Lbat;f:Ljava/util/function/Predicate;
      intermediary field_6155 Lnet/minecraft/class_1301;field_6155:Ljava/util/function/Predicate;
      named EXCEPT_SPECTATOR Lnet/minecraft/predicate/entity/EntityPredicates;EXCEPT_SPECTATOR:Ljava/util/function/Predicate;
    • CAN_COLLIDE

      public static final Predicate<Entity> CAN_COLLIDE
      Mappings:
      Namespace Name Mixin selector
      official g Lbat;g:Ljava/util/function/Predicate;
      intermediary field_35589 Lnet/minecraft/class_1301;field_35589:Ljava/util/function/Predicate;
      named CAN_COLLIDE Lnet/minecraft/predicate/entity/EntityPredicates;CAN_COLLIDE:Ljava/util/function/Predicate;
  • Constructor Details

    • EntityPredicates

      private EntityPredicates()
  • Method Details

    • maxDistance

      public static Predicate<Entity> maxDistance(double x, double y, double z, double max)
      Mappings:
      Namespace Name Mixin selector
      official a Lbat;a(DDDD)Ljava/util/function/Predicate;
      intermediary method_5909 Lnet/minecraft/class_1301;method_5909(DDDD)Ljava/util/function/Predicate;
      named maxDistance Lnet/minecraft/predicate/entity/EntityPredicates;maxDistance(DDDD)Ljava/util/function/Predicate;
    • canBePushedBy

      public static Predicate<Entity> canBePushedBy(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbat;a(Lbaq;)Ljava/util/function/Predicate;
      intermediary method_5911 Lnet/minecraft/class_1301;method_5911(Lnet/minecraft/class_1297;)Ljava/util/function/Predicate;
      named canBePushedBy Lnet/minecraft/predicate/entity/EntityPredicates;canBePushedBy(Lnet/minecraft/entity/Entity;)Ljava/util/function/Predicate;
    • rides

      public static Predicate<Entity> rides(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbat;b(Lbaq;)Ljava/util/function/Predicate;
      intermediary method_5913 Lnet/minecraft/class_1301;method_5913(Lnet/minecraft/class_1297;)Ljava/util/function/Predicate;
      named rides Lnet/minecraft/predicate/entity/EntityPredicates;rides(Lnet/minecraft/entity/Entity;)Ljava/util/function/Predicate;