Package net.minecraft.world.level
Interface EntityGetter
- All Known Subinterfaces:
CommonLevelAccessor,LevelAccessor,ServerEntityGetter,ServerLevelAccessor,WorldGenLevel
- All Known Implementing Classes:
ClientLevel,Level,ServerLevel,WorldGenRegion
public interface EntityGetter
-
Method Summary
Modifier and TypeMethodDescriptiongetEntities(@Nullable Entity entity, AABB area) Will get all entities within the specified AABB excluding the one passed into it.getEntities(@Nullable Entity entity, AABB area, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.getEntities(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate) getEntitiesOfClass(Class<T> entityClass, AABB area) getEntitiesOfClass(Class<T> entityClass, AABB area, Predicate<? super T> filter) default List<VoxelShape> getEntityCollisions(@Nullable Entity entity, AABB collisionBox) default @Nullable PlayergetNearestPlayer(double x, double y, double z, double distance, boolean creativePlayers) default @Nullable PlayergetNearestPlayer(double x, double y, double z, double distance, @Nullable Predicate<Entity> predicate) default @Nullable PlayergetNearestPlayer(Entity entity, double distance) default @Nullable PlayergetPlayerByUUID(UUID uniqueId) default booleanhasNearbyAlivePlayer(double x, double y, double z, double distance) default booleanisUnobstructed(@Nullable Entity entity, VoxelShape shape) players()
-
Method Details
-
getEntities
Gets all entities within the specified AABB excluding the one passed into it. -
getEntities
-
getEntitiesOfClass
-
players
-
getEntities
Will get all entities within the specified AABB excluding the one passed into it. -
isUnobstructed
-
getEntitiesOfClass
-
getEntityCollisions
-
getNearestPlayer
-
getNearestPlayer
-
getNearestPlayer
default @Nullable Player getNearestPlayer(double x, double y, double z, double distance, boolean creativePlayers) -
hasNearbyAlivePlayer
default boolean hasNearbyAlivePlayer(double x, double y, double z, double distance) -
getPlayerByUUID
-