Class EntityPredicates


  • public final class EntityPredicates
    extends java.lang.Object
    • Field Detail

      • ENTITY_STILL_ALIVE

        public static final java.util.function.Predicate<Entity> ENTITY_STILL_ALIVE
      • LIVING_ENTITY_STILL_ALIVE

        public static final java.util.function.Predicate<LivingEntity> LIVING_ENTITY_STILL_ALIVE
      • ENTITY_NOT_BEING_RIDDEN

        public static final java.util.function.Predicate<Entity> ENTITY_NOT_BEING_RIDDEN
      • CONTAINER_ENTITY_SELECTOR

        public static final java.util.function.Predicate<Entity> CONTAINER_ENTITY_SELECTOR
      • NO_CREATIVE_OR_SPECTATOR

        public static final java.util.function.Predicate<Entity> NO_CREATIVE_OR_SPECTATOR
      • ATTACK_ALLOWED

        public static final java.util.function.Predicate<Entity> ATTACK_ALLOWED
      • NO_SPECTATORS

        public static final java.util.function.Predicate<Entity> NO_SPECTATORS
    • Constructor Detail

      • EntityPredicates

        public EntityPredicates()
    • Method Detail

      • withinDistance

        public static java.util.function.Predicate<Entity> withinDistance​(double p_188443_0_,
                                                                          double p_188443_2_,
                                                                          double p_188443_4_,
                                                                          double p_188443_6_)
      • pushableBy

        public static java.util.function.Predicate<Entity> pushableBy​(Entity p_200823_0_)
      • notRiding

        public static java.util.function.Predicate<Entity> notRiding​(Entity p_200820_0_)