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(Entity entity, AABB area) Will get all entities within the specified AABB excluding the one passed into it.getEntities(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(Entity entity, AABB collisionBox) default PlayergetNearestPlayer(double x, double y, double z, double distance, boolean creativePlayers) default PlayergetNearestPlayer(double x, double y, double z, double distance, Predicate<Entity> predicate) default PlayergetNearestPlayer(Entity entity, double distance) default PlayergetPlayerByUUID(UUID uniqueId) default booleanhasNearbyAlivePlayer(double x, double y, double z, double distance) default booleanisUnobstructed(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. Args: entityToExclude, aabb -
isUnobstructed
-
getEntitiesOfClass
-
getEntityCollisions
-
getNearestPlayer
-
getNearestPlayer
-
getNearestPlayer
@Nullable default 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
-