Package net.minecraft.world
Interface EntityView
- All Known Subinterfaces:
class_5423
,ServerWorldAccess
,StructureWorldAccess
,WorldAccess
- All Known Implementing Classes:
ChunkRegion
,ClientWorld
,ServerWorld
,World
public interface EntityView
- Mappings:
Namespace Name official btm
intermediary net/minecraft/class_1924
named net/minecraft/world/EntityView
-
Method Summary
Modifier and Type Method Description default <T extends LivingEntity>
TgetClosestEntity(Class<? extends T> entityClass, TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z, Box box)
default <T extends LivingEntity>
TgetClosestEntity(List<? extends T> entityList, TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z)
default PlayerEntity
getClosestPlayer(double x, double y, double z, double maxDistance, boolean ignoreCreative)
default PlayerEntity
getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate)
default PlayerEntity
getClosestPlayer(TargetPredicate targetPredicate, double x, double y, double z)
default PlayerEntity
getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity)
default PlayerEntity
getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z)
default PlayerEntity
getClosestPlayer(Entity entity, double maxDistance)
default <T extends Entity>
List<T>getEntitiesByClass(Class<T> entityClass, Box box, Predicate<? super T> predicate)
Computes a list of entities within some box whose runtime Java class is the same as or is a subclass of the given class.<T extends Entity>
List<T>getEntitiesByType(class_5575<Entity,T> class_5575, Box box, Predicate<? super T> predicate)
default Stream<VoxelShape>
getEntityCollisions(Entity entity, Box box, Predicate<Entity> predicate)
default <T extends Entity>
List<T>getNonSpectatingEntities(Class<T> entityClass, Box box)
default List<Entity>
getOtherEntities(Entity except, Box box)
Computes a list of entities within some box, excluding the given entity, that are not spectators.List<Entity>
getOtherEntities(Entity except, Box box, Predicate<? super Entity> predicate)
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.default PlayerEntity
getPlayerByUuid(UUID uuid)
List<? extends PlayerEntity>
getPlayers()
default List<PlayerEntity>
getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box)
default <T extends LivingEntity>
List<T>getTargets(Class<T> entityClass, TargetPredicate targetPredicate, LivingEntity targetingEntity, Box box)
default boolean
intersectsEntities(Entity entity, VoxelShape shape)
default boolean
isPlayerInRange(double x, double y, double z, double range)
-
Method Details
-
getOtherEntities
List<Entity> getOtherEntities(@Nullable Entity except, Box box, Predicate<? super Entity> predicate)Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.- Parameters:
except
- the entity the box logically surrounds. This entity is ignored if it is inside the box.box
- the box in which to search for entitiespredicate
- a predicate which entities must satisfy in order to be included in the returned list.- Returns:
- a list of entities within a box, excluding the given entity, all satisfying the given predicate
- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Laqv;Ldip;Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_8333
Lnet/minecraft/class_1924;method_8333(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
named getOtherEntities
Lnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
-
getEntitiesByType
<T extends Entity> List<T> getEntitiesByType(class_5575<Entity,T> class_5575, Box box, Predicate<? super T> predicate)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Lcli;Ldip;Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_18023
Lnet/minecraft/class_1924;method_18023(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
named getEntitiesByType
Lnet/minecraft/world/EntityView;getEntitiesByType(Lnet/minecraft/class_5575;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
-
getEntitiesByClass
default <T extends Entity> List<T> getEntitiesByClass(Class<T> entityClass, Box box, Predicate<? super T> predicate)Computes a list of entities within some box whose runtime Java class is the same as or is a subclass of the given class.- Parameters:
entityClass
- the class the list of entities must extendbox
- the box in which to search for entitiespredicate
- a predicate which entities must satisfy in order to be included in the returned list- Returns:
- a list of entities within the box whose runtime class is a subclass of the given class
- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Ljava/lang/Class;Ldip;Ljava/util/function/Predicate;)Ljava/util/List;
intermediary method_8390
Lnet/minecraft/class_1924;method_8390(Ljava/lang/Class;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
named getEntitiesByClass
Lnet/minecraft/world/EntityView;getEntitiesByClass(Ljava/lang/Class;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
-
getPlayers
List<? extends PlayerEntity> getPlayers()- Mappings:
Namespace Name Mixin selector official z
Lbtm;z()Ljava/util/List;
intermediary method_18456
Lnet/minecraft/class_1924;method_18456()Ljava/util/List;
named getPlayers
Lnet/minecraft/world/EntityView;getPlayers()Ljava/util/List;
-
getOtherEntities
Computes a list of entities within some box, excluding the given entity, that are not spectators.- Parameters:
except
- the entity the box logically surrounds. This entity is ignored if it is inside the box.box
- the box in which to search for entities- Returns:
- a list of entities within a box, excluding the given entity
- See Also:
getOtherEntities(Entity, Box, Predicate)
,Entity.isSpectator()
- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Laqv;Ldip;)Ljava/util/List;
intermediary method_8335
Lnet/minecraft/class_1924;method_8335(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;
named getOtherEntities
Lnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
-
intersectsEntities
- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Laqv;Ldjn;)Z
intermediary method_8611
Lnet/minecraft/class_1924;method_8611(Lnet/minecraft/class_1297;Lnet/minecraft/class_265;)Z
named intersectsEntities
Lnet/minecraft/world/EntityView;intersectsEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;)Z
-
getNonSpectatingEntities
- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Ljava/lang/Class;Ldip;)Ljava/util/List;
intermediary method_18467
Lnet/minecraft/class_1924;method_18467(Ljava/lang/Class;Lnet/minecraft/class_238;)Ljava/util/List;
named getNonSpectatingEntities
Lnet/minecraft/world/EntityView;getNonSpectatingEntities(Ljava/lang/Class;Lnet/minecraft/util/math/Box;)Ljava/util/List;
-
getEntityCollisions
default Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Mappings:
Namespace Name Mixin selector official c
Lbtm;c(Laqv;Ldip;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
intermediary method_20743
Lnet/minecraft/class_1924;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
named getEntityCollisions
Lnet/minecraft/world/EntityView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
-
getClosestPlayer
@Nullable default PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, @Nullable Predicate<Entity> targetPredicate)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(DDDDLjava/util/function/Predicate;)Lbhl;
intermediary method_8604
Lnet/minecraft/class_1924;method_8604(DDDDLjava/util/function/Predicate;)Lnet/minecraft/class_1657;
named getClosestPlayer
Lnet/minecraft/world/EntityView;getClosestPlayer(DDDDLjava/util/function/Predicate;)Lnet/minecraft/entity/player/PlayerEntity;
-
getClosestPlayer
- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Laqv;D)Lbhl;
intermediary method_18460
Lnet/minecraft/class_1924;method_18460(Lnet/minecraft/class_1297;D)Lnet/minecraft/class_1657;
named getClosestPlayer
Lnet/minecraft/world/EntityView;getClosestPlayer(Lnet/minecraft/entity/Entity;D)Lnet/minecraft/entity/player/PlayerEntity;
-
getClosestPlayer
@Nullable default PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, boolean ignoreCreative)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(DDDDZ)Lbhl;
intermediary method_18459
Lnet/minecraft/class_1924;method_18459(DDDDZ)Lnet/minecraft/class_1657;
named getClosestPlayer
Lnet/minecraft/world/EntityView;getClosestPlayer(DDDDZ)Lnet/minecraft/entity/player/PlayerEntity;
-
isPlayerInRange
default boolean isPlayerInRange(double x, double y, double z, double range)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(DDDD)Z
intermediary method_18458
Lnet/minecraft/class_1924;method_18458(DDDD)Z
named isPlayerInRange
Lnet/minecraft/world/EntityView;isPlayerInRange(DDDD)Z
-
getClosestPlayer
@Nullable default PlayerEntity getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Lbal;Lari;)Lbhl;
intermediary method_18462
Lnet/minecraft/class_1924;method_18462(Lnet/minecraft/class_4051;Lnet/minecraft/class_1309;)Lnet/minecraft/class_1657;
named getClosestPlayer
Lnet/minecraft/world/EntityView;getClosestPlayer(Lnet/minecraft/entity/ai/TargetPredicate;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/player/PlayerEntity;
-
getClosestPlayer
@Nullable default PlayerEntity getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Lbal;Lari;DDD)Lbhl;
intermediary method_18463
Lnet/minecraft/class_1924;method_18463(Lnet/minecraft/class_4051;Lnet/minecraft/class_1309;DDD)Lnet/minecraft/class_1657;
named getClosestPlayer
Lnet/minecraft/world/EntityView;getClosestPlayer(Lnet/minecraft/entity/ai/TargetPredicate;Lnet/minecraft/entity/LivingEntity;DDD)Lnet/minecraft/entity/player/PlayerEntity;
-
getClosestPlayer
@Nullable default PlayerEntity getClosestPlayer(TargetPredicate targetPredicate, double x, double y, double z)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Lbal;DDD)Lbhl;
intermediary method_18461
Lnet/minecraft/class_1924;method_18461(Lnet/minecraft/class_4051;DDD)Lnet/minecraft/class_1657;
named getClosestPlayer
Lnet/minecraft/world/EntityView;getClosestPlayer(Lnet/minecraft/entity/ai/TargetPredicate;DDD)Lnet/minecraft/entity/player/PlayerEntity;
-
getClosestEntity
@Nullable default <T extends LivingEntity> T getClosestEntity(Class<? extends T> entityClass, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Ljava/lang/Class;Lbal;Lari;DDDLdip;)Lari;
intermediary method_21726
Lnet/minecraft/class_1924;method_21726(Ljava/lang/Class;Lnet/minecraft/class_4051;Lnet/minecraft/class_1309;DDDLnet/minecraft/class_238;)Lnet/minecraft/class_1309;
named getClosestEntity
Lnet/minecraft/world/EntityView;getClosestEntity(Ljava/lang/Class;Lnet/minecraft/entity/ai/TargetPredicate;Lnet/minecraft/entity/LivingEntity;DDDLnet/minecraft/util/math/Box;)Lnet/minecraft/entity/LivingEntity;
-
getClosestEntity
@Nullable default <T extends LivingEntity> T getClosestEntity(List<? extends T> entityList, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Ljava/util/List;Lbal;Lari;DDD)Lari;
intermediary method_18468
Lnet/minecraft/class_1924;method_18468(Ljava/util/List;Lnet/minecraft/class_4051;Lnet/minecraft/class_1309;DDD)Lnet/minecraft/class_1309;
named getClosestEntity
Lnet/minecraft/world/EntityView;getClosestEntity(Ljava/util/List;Lnet/minecraft/entity/ai/TargetPredicate;Lnet/minecraft/entity/LivingEntity;DDD)Lnet/minecraft/entity/LivingEntity;
-
getPlayers
default List<PlayerEntity> getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Lbal;Lari;Ldip;)Ljava/util/List;
intermediary method_18464
Lnet/minecraft/class_1924;method_18464(Lnet/minecraft/class_4051;Lnet/minecraft/class_1309;Lnet/minecraft/class_238;)Ljava/util/List;
named getPlayers
Lnet/minecraft/world/EntityView;getPlayers(Lnet/minecraft/entity/ai/TargetPredicate;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
-
getTargets
default <T extends LivingEntity> List<T> getTargets(Class<T> entityClass, TargetPredicate targetPredicate, LivingEntity targetingEntity, Box box)- Mappings:
Namespace Name Mixin selector official a
Lbtm;a(Ljava/lang/Class;Lbal;Lari;Ldip;)Ljava/util/List;
intermediary method_18466
Lnet/minecraft/class_1924;method_18466(Ljava/lang/Class;Lnet/minecraft/class_4051;Lnet/minecraft/class_1309;Lnet/minecraft/class_238;)Ljava/util/List;
named getTargets
Lnet/minecraft/world/EntityView;getTargets(Ljava/lang/Class;Lnet/minecraft/entity/ai/TargetPredicate;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
-
getPlayerByUuid
- Mappings:
Namespace Name Mixin selector official b
Lbtm;b(Ljava/util/UUID;)Lbhl;
intermediary method_18470
Lnet/minecraft/class_1924;method_18470(Ljava/util/UUID;)Lnet/minecraft/class_1657;
named getPlayerByUuid
Lnet/minecraft/world/EntityView;getPlayerByUuid(Ljava/util/UUID;)Lnet/minecraft/entity/player/PlayerEntity;
-