Package net.minecraft.world
Interface IEntityReader
- All Known Subinterfaces:
IBiomeReader
,ISeedReader
,IServerWorld
,IWorld
- All Known Implementing Classes:
ClientWorld
,ServerWorld
,World
,WorldGenRegion
public interface IEntityReader
-
Method Summary
Modifier and TypeMethodDescriptiongetEntities
(Entity p_72839_1_, AxisAlignedBB p_72839_2_) getEntities
(Entity p_175674_1_, AxisAlignedBB p_175674_2_, Predicate<? super Entity> p_175674_3_) getEntitiesOfClass
(Class<? extends T> p_217357_1_, AxisAlignedBB p_217357_2_) getEntitiesOfClass
(Class<? extends T> p_175647_1_, AxisAlignedBB p_175647_2_, Predicate<? super T> p_175647_3_) default Stream<VoxelShape>
getEntityCollisions
(Entity p_230318_1_, AxisAlignedBB p_230318_2_, Predicate<Entity> p_230318_3_) getLoadedEntitiesOfClass
(Class<? extends T> p_225317_1_, AxisAlignedBB p_225317_2_) getLoadedEntitiesOfClass
(Class<? extends T> p_225316_1_, AxisAlignedBB p_225316_2_, Predicate<? super T> p_225316_3_) default <T extends LivingEntity>
List<T>getNearbyEntities
(Class<? extends T> p_217374_1_, EntityPredicate p_217374_2_, LivingEntity p_217374_3_, AxisAlignedBB p_217374_4_) default List<PlayerEntity>
getNearbyPlayers
(EntityPredicate p_217373_1_, LivingEntity p_217373_2_, AxisAlignedBB p_217373_3_) default <T extends LivingEntity>
TgetNearestEntity
(Class<? extends T> p_217360_1_, EntityPredicate p_217360_2_, LivingEntity p_217360_3_, double p_217360_4_, double p_217360_6_, double p_217360_8_, AxisAlignedBB p_217360_10_) default <T extends LivingEntity>
TgetNearestEntity
(List<? extends T> p_217361_1_, EntityPredicate p_217361_2_, LivingEntity p_217361_3_, double p_217361_4_, double p_217361_6_, double p_217361_8_) default <T extends LivingEntity>
TgetNearestLoadedEntity
(Class<? extends T> p_225318_1_, EntityPredicate p_225318_2_, LivingEntity p_225318_3_, double p_225318_4_, double p_225318_6_, double p_225318_8_, AxisAlignedBB p_225318_10_) default PlayerEntity
getNearestPlayer
(double p_217366_1_, double p_217366_3_, double p_217366_5_, double p_217366_7_, boolean p_217366_9_) default PlayerEntity
getNearestPlayer
(double p_190525_1_, double p_190525_3_, double p_190525_5_, double p_190525_7_, Predicate<Entity> p_190525_9_) default PlayerEntity
getNearestPlayer
(Entity p_217362_1_, double p_217362_2_) default PlayerEntity
getNearestPlayer
(EntityPredicate p_217359_1_, double p_217359_2_, double p_217359_4_, double p_217359_6_) default PlayerEntity
getNearestPlayer
(EntityPredicate p_217370_1_, LivingEntity p_217370_2_) default PlayerEntity
getNearestPlayer
(EntityPredicate p_217372_1_, LivingEntity p_217372_2_, double p_217372_3_, double p_217372_5_, double p_217372_7_) default PlayerEntity
getPlayerByUUID
(UUID p_217371_1_) default boolean
hasNearbyAlivePlayer
(double p_217358_1_, double p_217358_3_, double p_217358_5_, double p_217358_7_) default boolean
isUnobstructed
(Entity p_195585_1_, VoxelShape p_195585_2_) List<? extends PlayerEntity>
players()
-
Method Details
-
getEntities
-
getEntitiesOfClass
<T extends Entity> List<T> getEntitiesOfClass(Class<? extends T> p_175647_1_, AxisAlignedBB p_175647_2_, @Nullable Predicate<? super T> p_175647_3_) -
getLoadedEntitiesOfClass
default <T extends Entity> List<T> getLoadedEntitiesOfClass(Class<? extends T> p_225316_1_, AxisAlignedBB p_225316_2_, @Nullable Predicate<? super T> p_225316_3_) -
players
List<? extends PlayerEntity> players() -
getEntities
-
isUnobstructed
-
getEntitiesOfClass
default <T extends Entity> List<T> getEntitiesOfClass(Class<? extends T> p_217357_1_, AxisAlignedBB p_217357_2_) -
getLoadedEntitiesOfClass
default <T extends Entity> List<T> getLoadedEntitiesOfClass(Class<? extends T> p_225317_1_, AxisAlignedBB p_225317_2_) -
getEntityCollisions
default Stream<VoxelShape> getEntityCollisions(@Nullable Entity p_230318_1_, AxisAlignedBB p_230318_2_, Predicate<Entity> p_230318_3_) -
getNearestPlayer
@Nullable default PlayerEntity getNearestPlayer(double p_190525_1_, double p_190525_3_, double p_190525_5_, double p_190525_7_, @Nullable Predicate<Entity> p_190525_9_) -
getNearestPlayer
-
getNearestPlayer
@Nullable default PlayerEntity getNearestPlayer(double p_217366_1_, double p_217366_3_, double p_217366_5_, double p_217366_7_, boolean p_217366_9_) -
hasNearbyAlivePlayer
default boolean hasNearbyAlivePlayer(double p_217358_1_, double p_217358_3_, double p_217358_5_, double p_217358_7_) -
getNearestPlayer
@Nullable default PlayerEntity getNearestPlayer(EntityPredicate p_217370_1_, LivingEntity p_217370_2_) -
getNearestPlayer
@Nullable default PlayerEntity getNearestPlayer(EntityPredicate p_217372_1_, LivingEntity p_217372_2_, double p_217372_3_, double p_217372_5_, double p_217372_7_) -
getNearestPlayer
@Nullable default PlayerEntity getNearestPlayer(EntityPredicate p_217359_1_, double p_217359_2_, double p_217359_4_, double p_217359_6_) -
getNearestEntity
@Nullable default <T extends LivingEntity> T getNearestEntity(Class<? extends T> p_217360_1_, EntityPredicate p_217360_2_, @Nullable LivingEntity p_217360_3_, double p_217360_4_, double p_217360_6_, double p_217360_8_, AxisAlignedBB p_217360_10_) -
getNearestLoadedEntity
@Nullable default <T extends LivingEntity> T getNearestLoadedEntity(Class<? extends T> p_225318_1_, EntityPredicate p_225318_2_, @Nullable LivingEntity p_225318_3_, double p_225318_4_, double p_225318_6_, double p_225318_8_, AxisAlignedBB p_225318_10_) -
getNearestEntity
@Nullable default <T extends LivingEntity> T getNearestEntity(List<? extends T> p_217361_1_, EntityPredicate p_217361_2_, @Nullable LivingEntity p_217361_3_, double p_217361_4_, double p_217361_6_, double p_217361_8_) -
getNearbyPlayers
default List<PlayerEntity> getNearbyPlayers(EntityPredicate p_217373_1_, LivingEntity p_217373_2_, AxisAlignedBB p_217373_3_) -
getNearbyEntities
default <T extends LivingEntity> List<T> getNearbyEntities(Class<? extends T> p_217374_1_, EntityPredicate p_217374_2_, LivingEntity p_217374_3_, AxisAlignedBB p_217374_4_) -
getPlayerByUUID
-