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> pEntityClass, TargetingConditions pTargetingConditions, LivingEntity pSource, AABB pArea) getNearbyPlayers
(TargetingConditions pTargetingConditions, LivingEntity pSource, AABB pArea) default <T extends LivingEntity>
TgetNearestEntity
(Class<? extends T> pEntityClass, TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ, AABB pArea) default <T extends LivingEntity>
TgetNearestEntity
(List<? extends T> pEntities, TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ) default Player
getNearestPlayer
(TargetingConditions pTargetingConditions, double pX, double pY, double pZ) default Player
getNearestPlayer
(TargetingConditions pTargetingConditions, LivingEntity pSource) default Player
getNearestPlayer
(TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ) 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 pTargetingConditions, LivingEntity pSource) -
getNearestPlayer
@Nullable default Player getNearestPlayer(TargetingConditions pTargetingConditions, LivingEntity pSource, double pX, double pY, double pZ) -
getNearestPlayer
@Nullable default Player getNearestPlayer(TargetingConditions pTargetingConditions, double pX, double pY, double pZ) -
getNearestEntity
@Nullable default <T extends LivingEntity> T getNearestEntity(Class<? extends T> pEntityClass, TargetingConditions pTargetingConditions, @Nullable LivingEntity pSource, double pX, double pY, double pZ, AABB pArea) -
getNearestEntity
@Nullable default <T extends LivingEntity> T getNearestEntity(List<? extends T> pEntities, TargetingConditions pTargetingConditions, @Nullable LivingEntity pSource, double pX, double pY, double pZ) -
getNearbyPlayers
default List<Player> getNearbyPlayers(TargetingConditions pTargetingConditions, LivingEntity pSource, AABB pArea) -
getNearbyEntities
default <T extends LivingEntity> List<T> getNearbyEntities(Class<T> pEntityClass, TargetingConditions pTargetingConditions, LivingEntity pSource, AABB pArea)
-