Class EntitySelector

java.lang.Object
net.minecraft.world.entity.EntitySelector

public final class EntitySelector extends Object
  • Field Details

    • ENTITY_STILL_ALIVE

      public static final Predicate<Entity> ENTITY_STILL_ALIVE
      Selects only entities which are alive
    • LIVING_ENTITY_STILL_ALIVE

      public static final Predicate<Entity> LIVING_ENTITY_STILL_ALIVE
      Selects only entities which are LivingEntities and alive
    • ENTITY_NOT_BEING_RIDDEN

      public static final Predicate<Entity> ENTITY_NOT_BEING_RIDDEN
      Selects only entities which are neither ridden by anything nor ride on anything
    • CONTAINER_ENTITY_SELECTOR

      public static final Predicate<Entity> CONTAINER_ENTITY_SELECTOR
      Selects only entities which are container entities
    • NO_CREATIVE_OR_SPECTATOR

      public static final Predicate<Entity> NO_CREATIVE_OR_SPECTATOR
      Selects entities which are neither creative-mode players nor spectator-players
    • NO_SPECTATORS

      public static final Predicate<Entity> NO_SPECTATORS
      Selects entities which are either not players or players that are not spectating
    • CAN_BE_COLLIDED_WITH

      public static final Predicate<Entity> CAN_BE_COLLIDED_WITH
      Selects entities which are collidable with and aren't spectators
  • Constructor Details

    • EntitySelector

      private EntitySelector()
  • Method Details