Interface EntityGetter

All Known Subinterfaces:
CommonLevelAccessor, LevelAccessor, ServerLevelAccessor, WorldGenLevel
All Known Implementing Classes:
ClientLevel, Level, ServerLevel, WorldGenRegion

public interface EntityGetter
  • Method Details

    • getEntities

      List<Entity> getEntities(@Nullable Entity pEntity, AABB pArea, Predicate<? super Entity> pPredicate)
      Gets all entities within the specified AABB excluding the one passed into it.
    • getEntities

      <T extends Entity> List<T> getEntities(EntityTypeTest<Entity,T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate)
    • getEntitiesOfClass

      default <T extends Entity> List<T> getEntitiesOfClass(Class<T> pClazz, AABB pArea, Predicate<? super T> pFilter)
    • players

      List<? extends Player> players()
    • getEntities

      default List<Entity> getEntities(@Nullable Entity pEntity, AABB pArea)
      Will get all entities within the specified AABB excluding the one passed into it. Args: entityToExclude, aabb
    • isUnobstructed

      default boolean isUnobstructed(@Nullable Entity pEntity, VoxelShape pShape)
    • getEntitiesOfClass

      default <T extends Entity> List<T> getEntitiesOfClass(Class<T> pEntityClass, AABB pArea)
    • getEntityCollisions

      default List<VoxelShape> getEntityCollisions(@Nullable Entity pEntity, AABB pCollisionBox)
    • getNearestPlayer

      @Nullable default Player getNearestPlayer(double pX, double pY, double pZ, double pDistance, @Nullable Predicate<Entity> pPredicate)
    • getNearestPlayer

      @Nullable default Player getNearestPlayer(Entity pEntity, double pDistance)
    • getNearestPlayer

      @Nullable default Player getNearestPlayer(double pX, double pY, double pZ, double pDistance, boolean pCreativePlayers)
    • hasNearbyAlivePlayer

      default boolean hasNearbyAlivePlayer(double pX, double pY, double pZ, double pDistance)
    • getNearestPlayer

      @Nullable default Player getNearestPlayer(TargetingConditions pPredicate, LivingEntity pTarget)
    • getNearestPlayer

      @Nullable default Player getNearestPlayer(TargetingConditions pPredicate, LivingEntity pTarget, double pX, double pY, double pZ)
    • getNearestPlayer

      @Nullable default Player getNearestPlayer(TargetingConditions pPredicate, double pX, double pY, double pZ)
    • getNearestEntity

      @Nullable default <T extends LivingEntity> T getNearestEntity(Class<? extends T> pEntityClazz, TargetingConditions pConditions, @Nullable LivingEntity pTarget, double pX, double pY, double pZ, AABB pBoundingBox)
    • getNearestEntity

      @Nullable default <T extends LivingEntity> T getNearestEntity(List<? extends T> pEntities, TargetingConditions pPredicate, @Nullable LivingEntity pTarget, double pX, double pY, double pZ)
    • getNearbyPlayers

      default List<Player> getNearbyPlayers(TargetingConditions pPredicate, LivingEntity pTarget, AABB pArea)
    • getNearbyEntities

      default <T extends LivingEntity> List<T> getNearbyEntities(Class<T> pEntityClazz, TargetingConditions pEntityPredicate, LivingEntity pEntity, AABB pArea)
    • getPlayerByUUID

      @Nullable default Player getPlayerByUUID(UUID pUniqueId)