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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<Entity>
getEntities(Entity p_72839_1_, AxisAlignedBB p_72839_2_)
java.util.List<Entity>
getEntities(Entity p_175674_1_, AxisAlignedBB p_175674_2_, java.util.function.Predicate<? super Entity> p_175674_3_)
default <T extends Entity>
java.util.List<T>getEntitiesOfClass(java.lang.Class<? extends T> p_217357_1_, AxisAlignedBB p_217357_2_)
<T extends Entity>
java.util.List<T>getEntitiesOfClass(java.lang.Class<? extends T> p_175647_1_, AxisAlignedBB p_175647_2_, java.util.function.Predicate<? super T> p_175647_3_)
default java.util.stream.Stream<VoxelShape>
getEntityCollisions(Entity p_230318_1_, AxisAlignedBB p_230318_2_, java.util.function.Predicate<Entity> p_230318_3_)
default <T extends Entity>
java.util.List<T>getLoadedEntitiesOfClass(java.lang.Class<? extends T> p_225317_1_, AxisAlignedBB p_225317_2_)
default <T extends Entity>
java.util.List<T>getLoadedEntitiesOfClass(java.lang.Class<? extends T> p_225316_1_, AxisAlignedBB p_225316_2_, java.util.function.Predicate<? super T> p_225316_3_)
default <T extends LivingEntity>
java.util.List<T>getNearbyEntities(java.lang.Class<? extends T> p_217374_1_, EntityPredicate p_217374_2_, LivingEntity p_217374_3_, AxisAlignedBB p_217374_4_)
default java.util.List<PlayerEntity>
getNearbyPlayers(EntityPredicate p_217373_1_, LivingEntity p_217373_2_, AxisAlignedBB p_217373_3_)
default <T extends LivingEntity>
TgetNearestEntity(java.lang.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(java.util.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(java.lang.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_, java.util.function.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(java.util.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_)
java.util.List<? extends PlayerEntity>
players()
-
-
-
Method Detail
-
getEntities
java.util.List<Entity> getEntities(@Nullable Entity p_175674_1_, AxisAlignedBB p_175674_2_, @Nullable java.util.function.Predicate<? super Entity> p_175674_3_)
-
getEntitiesOfClass
<T extends Entity> java.util.List<T> getEntitiesOfClass(java.lang.Class<? extends T> p_175647_1_, AxisAlignedBB p_175647_2_, @Nullable java.util.function.Predicate<? super T> p_175647_3_)
-
getLoadedEntitiesOfClass
default <T extends Entity> java.util.List<T> getLoadedEntitiesOfClass(java.lang.Class<? extends T> p_225316_1_, AxisAlignedBB p_225316_2_, @Nullable java.util.function.Predicate<? super T> p_225316_3_)
-
players
java.util.List<? extends PlayerEntity> players()
-
getEntities
default java.util.List<Entity> getEntities(@Nullable Entity p_72839_1_, AxisAlignedBB p_72839_2_)
-
isUnobstructed
default boolean isUnobstructed(@Nullable Entity p_195585_1_, VoxelShape p_195585_2_)
-
getEntitiesOfClass
default <T extends Entity> java.util.List<T> getEntitiesOfClass(java.lang.Class<? extends T> p_217357_1_, AxisAlignedBB p_217357_2_)
-
getLoadedEntitiesOfClass
default <T extends Entity> java.util.List<T> getLoadedEntitiesOfClass(java.lang.Class<? extends T> p_225317_1_, AxisAlignedBB p_225317_2_)
-
getEntityCollisions
default java.util.stream.Stream<VoxelShape> getEntityCollisions(@Nullable Entity p_230318_1_, AxisAlignedBB p_230318_2_, java.util.function.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 java.util.function.Predicate<Entity> p_190525_9_)
-
getNearestPlayer
@Nullable default PlayerEntity getNearestPlayer(Entity p_217362_1_, double p_217362_2_)
-
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(java.lang.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(java.lang.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(java.util.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 java.util.List<PlayerEntity> getNearbyPlayers(EntityPredicate p_217373_1_, LivingEntity p_217373_2_, AxisAlignedBB p_217373_3_)
-
getNearbyEntities
default <T extends LivingEntity> java.util.List<T> getNearbyEntities(java.lang.Class<? extends T> p_217374_1_, EntityPredicate p_217374_2_, LivingEntity p_217374_3_, AxisAlignedBB p_217374_4_)
-
getPlayerByUUID
@Nullable default PlayerEntity getPlayerByUUID(java.util.UUID p_217371_1_)
-
-