Class EntityPredicates

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

public final class EntityPredicates extends Object
Mappings:
Namespace Name
official po
intermediary net/minecraft/class_1394
named net/minecraft/entity/predicate/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 Lpo;a:Lcom/google/common/base/Predicate;
      intermediary field_11909 Lnet/minecraft/class_1394;field_11909:Lcom/google/common/base/Predicate;
      named VALID_ENTITY Lnet/minecraft/entity/predicate/EntityPredicates;VALID_ENTITY:Lcom/google/common/base/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 b Lpo;b:Lcom/google/common/base/Predicate;
      intermediary field_11910 Lnet/minecraft/class_1394;field_11910:Lcom/google/common/base/Predicate;
      named NOT_MOUNTED Lnet/minecraft/entity/predicate/EntityPredicates;NOT_MOUNTED:Lcom/google/common/base/Predicate;
    • VALID_INVENTORY

      public static final Predicate<Entity> VALID_INVENTORY
      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 c Lpo;c:Lcom/google/common/base/Predicate;
      intermediary field_11911 Lnet/minecraft/class_1394;field_11911:Lcom/google/common/base/Predicate;
      named VALID_INVENTORY Lnet/minecraft/entity/predicate/EntityPredicates;VALID_INVENTORY:Lcom/google/common/base/Predicate;
    • EXCEPT_SPECTATOR

      public static final Predicate<Entity> EXCEPT_SPECTATOR
      Mappings:
      Namespace Name Mixin selector
      official d Lpo;d:Lcom/google/common/base/Predicate;
      intermediary field_11912 Lnet/minecraft/class_1394;field_11912:Lcom/google/common/base/Predicate;
      named EXCEPT_SPECTATOR Lnet/minecraft/entity/predicate/EntityPredicates;EXCEPT_SPECTATOR:Lcom/google/common/base/Predicate;
  • Constructor Details

    • EntityPredicates

      public EntityPredicates()