public interface EntityView
Modifier and Type | Method and Description |
---|---|
default <T extends LivingEntity> |
getClosestEntity(Class<? extends T> entityClass,
TargetPredicate targetPredicate,
LivingEntity entity,
double x,
double y,
double z,
Box box) |
default <T extends LivingEntity> |
getClosestEntity(List<? extends T> entityList,
TargetPredicate targetPredicate,
LivingEntity entity,
double x,
double y,
double z) |
default <T extends LivingEntity> |
getClosestEntityIncludingUngeneratedChunks(Class<? extends T> entityClass,
TargetPredicate targetPredicate,
LivingEntity entity,
double x,
double y,
double z,
Box box) |
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(Entity entity,
double maxDistance) |
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) |
<T extends Entity> |
getEntities(Class<? extends T> entityClass,
Box box,
Predicate<? super T> predicate) |
default List<Entity> |
getEntities(Entity except,
Box box) |
List<Entity> |
getEntities(Entity except,
Box box,
Predicate<? super Entity> predicate) |
default <T extends Entity> |
getEntitiesIncludingUngeneratedChunks(Class<? extends T> entityClass,
Box box) |
default <T extends Entity> |
getEntitiesIncludingUngeneratedChunks(Class<? extends T> entityClass,
Box box,
Predicate<? super T> predicate) |
default Stream<VoxelShape> |
getEntityCollisions(Entity entity,
Box box,
Predicate<Entity> predicate) |
default <T extends Entity> |
getNonSpectatingEntities(Class<? extends T> entityClass,
Box box) |
default PlayerEntity |
getPlayerByUuid(UUID uuid) |
List<? extends PlayerEntity> |
getPlayers() |
default List<PlayerEntity> |
getPlayers(TargetPredicate targetPredicate,
LivingEntity entity,
Box box) |
default <T extends LivingEntity> |
getTargets(Class<? extends T> entityClass,
TargetPredicate targetPredicate,
LivingEntity targettingEntity,
Box box) |
default boolean |
intersectsEntities(Entity entity,
VoxelShape voxelShape) |
default boolean |
isPlayerInRange(double x,
double y,
double z,
double range) |
List<Entity> getEntities(@Nullable Entity except, Box box, @Nullable Predicate<? super Entity> predicate)
<T extends Entity> List<T> getEntities(Class<? extends T> entityClass, Box box, @Nullable Predicate<? super T> predicate)
default <T extends Entity> List<T> getEntitiesIncludingUngeneratedChunks(Class<? extends T> entityClass, Box box, @Nullable Predicate<? super T> predicate)
List<? extends PlayerEntity> getPlayers()
default boolean intersectsEntities(@Nullable Entity entity, VoxelShape voxelShape)
default <T extends Entity> List<T> getNonSpectatingEntities(Class<? extends T> entityClass, Box box)
default <T extends Entity> List<T> getEntitiesIncludingUngeneratedChunks(Class<? extends T> entityClass, Box box)
default Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
@Nullable default PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, @Nullable Predicate<Entity> targetPredicate)
@Nullable default PlayerEntity getClosestPlayer(Entity entity, double maxDistance)
@Nullable default PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, boolean ignoreCreative)
default boolean isPlayerInRange(double x, double y, double z, double range)
@Nullable default PlayerEntity getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity)
@Nullable default PlayerEntity getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z)
@Nullable default PlayerEntity getClosestPlayer(TargetPredicate targetPredicate, double x, double y, double z)
@Nullable default <T extends LivingEntity> T getClosestEntity(Class<? extends T> entityClass, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box)
@Nullable default <T extends LivingEntity> T getClosestEntityIncludingUngeneratedChunks(Class<? extends T> entityClass, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box)
@Nullable default <T extends LivingEntity> T getClosestEntity(List<? extends T> entityList, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z)
default List<PlayerEntity> getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box)
default <T extends LivingEntity> List<T> getTargets(Class<? extends T> entityClass, TargetPredicate targetPredicate, LivingEntity targettingEntity, Box box)
@Nullable default PlayerEntity getPlayerByUuid(UUID uuid)