Package net.minecraft.server.level
Interface ServerEntityGetter
- All Superinterfaces:
EntityGetter
- All Known Implementing Classes:
ServerLevel
-
Method Summary
Modifier and TypeMethodDescriptiongetLevel()default <T extends LivingEntity>
List<T> getNearbyEntities(Class<T> entityClass, TargetingConditions targetingConditions, LivingEntity source, AABB area) getNearbyPlayers(TargetingConditions targetingConditions, LivingEntity source, AABB area) default <T extends LivingEntity>
TgetNearestEntity(Class<? extends T> entityClass, TargetingConditions targetingConditions, LivingEntity source, double x, double y, double z, AABB area) default <T extends LivingEntity>
TgetNearestEntity(List<? extends T> entities, TargetingConditions targetingConditions, LivingEntity source, double x, double y, double z) default PlayergetNearestPlayer(TargetingConditions targetingConditions, double x, double y, double z) default PlayergetNearestPlayer(TargetingConditions targetingConditions, LivingEntity source) default PlayergetNearestPlayer(TargetingConditions targetingConditions, LivingEntity source, double x, double y, double z) Methods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getEntityCollisions, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, isUnobstructed, players
-
Method Details
-
getLevel
ServerLevel getLevel() -
getNearestPlayer
@Nullable default Player getNearestPlayer(TargetingConditions targetingConditions, LivingEntity source) -
getNearestPlayer
@Nullable default Player getNearestPlayer(TargetingConditions targetingConditions, LivingEntity source, double x, double y, double z) -
getNearestPlayer
@Nullable default Player getNearestPlayer(TargetingConditions targetingConditions, double x, double y, double z) -
getNearestEntity
@Nullable default <T extends LivingEntity> T getNearestEntity(Class<? extends T> entityClass, TargetingConditions targetingConditions, @Nullable LivingEntity source, double x, double y, double z, AABB area) -
getNearestEntity
@Nullable default <T extends LivingEntity> T getNearestEntity(List<? extends T> entities, TargetingConditions targetingConditions, @Nullable LivingEntity source, double x, double y, double z) -
getNearbyPlayers
default List<Player> getNearbyPlayers(TargetingConditions targetingConditions, LivingEntity source, AABB area) -
getNearbyEntities
default <T extends LivingEntity> List<T> getNearbyEntities(Class<T> entityClass, TargetingConditions targetingConditions, LivingEntity source, AABB area)
-