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