Interface ServerEntityGetter
- All Superinterfaces:
EntityGetter
- All Known Implementing Classes:
ServerLevel
-
Method Summary
Modifier and TypeMethodDescriptiongetLevel()default <T extends LivingEntity>
List<T> getNearbyEntities(Class<T> type, TargetingConditions targetConditions, LivingEntity source, AABB bb) getNearbyPlayers(TargetingConditions targetConditions, LivingEntity source, AABB bb) default <T extends LivingEntity>
@Nullable TgetNearestEntity(Class<? extends T> type, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z, AABB bb) default <T extends LivingEntity>
@Nullable TgetNearestEntity(List<? extends T> entities, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z) default @Nullable LivingEntitygetNearestEntity(TagKey<EntityType<?>> tag, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z, AABB bb) default @Nullable PlayergetNearestPlayer(TargetingConditions targetConditions, double x, double y, double z) default @Nullable PlayergetNearestPlayer(TargetingConditions targetConditions, LivingEntity source) default @Nullable PlayergetNearestPlayer(TargetingConditions targetConditions, LivingEntity source, double x, double y, double z) Methods inherited from interface 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 targetConditions, LivingEntity source) -
getNearestPlayer
default @Nullable Player getNearestPlayer(TargetingConditions targetConditions, LivingEntity source, double x, double y, double z) -
getNearestPlayer
default @Nullable Player getNearestPlayer(TargetingConditions targetConditions, double x, double y, double z) -
getNearestEntity
default <T extends LivingEntity> @Nullable T getNearestEntity(Class<? extends T> type, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z, AABB bb) -
getNearestEntity
default @Nullable LivingEntity getNearestEntity(TagKey<EntityType<?>> tag, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z, AABB bb) -
getNearestEntity
default <T extends LivingEntity> @Nullable T getNearestEntity(List<? extends T> entities, TargetingConditions targetConditions, @Nullable LivingEntity source, double x, double y, double z) -
getNearbyPlayers
default List<Player> getNearbyPlayers(TargetingConditions targetConditions, LivingEntity source, AABB bb) -
getNearbyEntities
default <T extends LivingEntity> List<T> getNearbyEntities(Class<T> type, TargetingConditions targetConditions, LivingEntity source, AABB bb)
-