Class EntityPredicates

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

public final class EntityPredicates extends Object
Mappings:
Namespace Name
named net/minecraft/predicate/entity/EntityPredicates
intermediary net/minecraft/class_1301
official bvo
  • 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
      named VALID_ENTITY Lnet/minecraft/predicate/entity/EntityPredicates;VALID_ENTITY:Ljava/util/function/Predicate;
      intermediary field_6154 Lnet/minecraft/class_1301;field_6154:Ljava/util/function/Predicate;
      official a Lbvo;a: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
      named VALID_LIVING_ENTITY Lnet/minecraft/predicate/entity/EntityPredicates;VALID_LIVING_ENTITY:Ljava/util/function/Predicate;
      intermediary field_6157 Lnet/minecraft/class_1301;field_6157:Ljava/util/function/Predicate;
      official b Lbvo;b: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
      named NOT_MOUNTED Lnet/minecraft/predicate/entity/EntityPredicates;NOT_MOUNTED:Ljava/util/function/Predicate;
      intermediary field_6153 Lnet/minecraft/class_1301;field_6153:Ljava/util/function/Predicate;
      official c Lbvo;c: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
      named VALID_INVENTORIES Lnet/minecraft/predicate/entity/EntityPredicates;VALID_INVENTORIES:Ljava/util/function/Predicate;
      intermediary field_6152 Lnet/minecraft/class_1301;field_6152:Ljava/util/function/Predicate;
      official d Lbvo;d:Ljava/util/function/Predicate;
    • EXCEPT_CREATIVE_OR_SPECTATOR

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

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

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

      public static final Predicate<Entity> CAN_HIT
      Mappings:
      Namespace Name Mixin selector
      named CAN_HIT Lnet/minecraft/predicate/entity/EntityPredicates;CAN_HIT:Ljava/util/function/Predicate;
      intermediary field_52443 Lnet/minecraft/class_1301;field_52443:Ljava/util/function/Predicate;
      official h Lbvo;h: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
      named maxDistance Lnet/minecraft/predicate/entity/EntityPredicates;maxDistance(DDDD)Ljava/util/function/Predicate;
      intermediary method_5909 Lnet/minecraft/class_1301;method_5909(DDDD)Ljava/util/function/Predicate;
      official a Lbvo;a(DDDD)Ljava/util/function/Predicate;
    • canBePushedBy

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

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