Package net.minecraft.world.level
Interface EntityGetter
- All Known Subinterfaces:
CommonLevelAccessor
,LevelAccessor
,ServerLevelAccessor
,WorldGenLevel
- All Known Implementing Classes:
ClientLevel
,Level
,ServerLevel
,WorldGenRegion
public interface EntityGetter
-
Method Summary
Modifier and TypeMethodDescriptiongetEntities
(Entity p_45934_, AABB p_45935_) getEntities
(Entity p_45936_, AABB p_45937_, Predicate<? super Entity> p_45938_) getEntities
(EntityTypeTest<Entity, T> p_151464_, AABB p_151465_, Predicate<? super T> p_151466_) getEntitiesOfClass
(Class<T> p_45977_, AABB p_45978_) getEntitiesOfClass
(Class<T> p_45979_, AABB p_45980_, Predicate<? super T> p_45981_) default List
<VoxelShape> getEntityCollisions
(Entity p_186451_, AABB p_186452_) default <T extends LivingEntity>
List<T> getNearbyEntities
(Class<T> p_45972_, TargetingConditions p_45973_, LivingEntity p_45974_, AABB p_45975_) getNearbyPlayers
(TargetingConditions p_45956_, LivingEntity p_45957_, AABB p_45958_) default <T extends LivingEntity>
TgetNearestEntity
(Class<? extends T> p_45964_, TargetingConditions p_45965_, LivingEntity p_45966_, double p_45967_, double p_45968_, double p_45969_, AABB p_45970_) default <T extends LivingEntity>
TgetNearestEntity
(List<? extends T> p_45983_, TargetingConditions p_45984_, LivingEntity p_45985_, double p_45986_, double p_45987_, double p_45988_) default Player
getNearestPlayer
(double p_45925_, double p_45926_, double p_45927_, double p_45928_, boolean p_45929_) default Player
getNearestPlayer
(double p_45919_, double p_45920_, double p_45921_, double p_45922_, Predicate<Entity> p_45923_) default Player
getNearestPlayer
(TargetingConditions p_45942_, double p_45943_, double p_45944_, double p_45945_) default Player
getNearestPlayer
(TargetingConditions p_45947_, LivingEntity p_45948_) default Player
getNearestPlayer
(TargetingConditions p_45950_, LivingEntity p_45951_, double p_45952_, double p_45953_, double p_45954_) default Player
getNearestPlayer
(Entity p_45931_, double p_45932_) default Player
getPlayerByUUID
(UUID p_46004_) default boolean
hasNearbyAlivePlayer
(double p_45915_, double p_45916_, double p_45917_, double p_45918_) default boolean
isUnobstructed
(Entity p_45939_, VoxelShape p_45940_) players()
-
Method Details
-
getEntities
-
getEntities
-
getEntitiesOfClass
-
players
-
getEntities
-
isUnobstructed
-
getEntitiesOfClass
-
getEntityCollisions
-
getNearestPlayer
-
getNearestPlayer
-
getNearestPlayer
@Nullable default Player getNearestPlayer(double p_45925_, double p_45926_, double p_45927_, double p_45928_, boolean p_45929_) -
hasNearbyAlivePlayer
default boolean hasNearbyAlivePlayer(double p_45915_, double p_45916_, double p_45917_, double p_45918_) -
getNearestPlayer
-
getNearestPlayer
@Nullable default Player getNearestPlayer(TargetingConditions p_45950_, LivingEntity p_45951_, double p_45952_, double p_45953_, double p_45954_) -
getNearestPlayer
@Nullable default Player getNearestPlayer(TargetingConditions p_45942_, double p_45943_, double p_45944_, double p_45945_) -
getNearestEntity
@Nullable default <T extends LivingEntity> T getNearestEntity(Class<? extends T> p_45964_, TargetingConditions p_45965_, @Nullable LivingEntity p_45966_, double p_45967_, double p_45968_, double p_45969_, AABB p_45970_) -
getNearestEntity
@Nullable default <T extends LivingEntity> T getNearestEntity(List<? extends T> p_45983_, TargetingConditions p_45984_, @Nullable LivingEntity p_45985_, double p_45986_, double p_45987_, double p_45988_) -
getNearbyPlayers
default List<Player> getNearbyPlayers(TargetingConditions p_45956_, LivingEntity p_45957_, AABB p_45958_) -
getNearbyEntities
default <T extends LivingEntity> List<T> getNearbyEntities(Class<T> p_45972_, TargetingConditions p_45973_, LivingEntity p_45974_, AABB p_45975_) -
getPlayerByUUID
-