Object EntityFinder
-
- All Implemented Interfaces:
public class EntityFinder
-
-
Field Summary
Fields Modifier and Type Field Description public final static EntityFinderINSTANCE
-
Method Summary
Modifier and Type Method Description final <T extends Entity> TfindClosestEntityInRange(LevelAccessor $self, Class<T> clazz, Vec3 base, Number radius)final PlayerfindClosestPlayerInRange(LevelAccessor $self, Vec3 base, Number radius)final ServerPlayerfindClosestPlayerInRange(ServerLevelAccessor $self, Vec3 base, Number radius)final ServerPlayerfindClosestPlayerInRange(ServerLevelAccessor $self, BlockPos base, Number radius)final ServerPlayerfindClosestPlayerInRange(ServerLevel $self, Vec3 base, Number radius)final List<Player>findPlayersInRange(LevelAccessor $self, Vec3 base, Number radius)final List<ServerPlayer>findPlayersInRange(ServerLevelAccessor $self, Vec3 base, Number radius)final List<ServerPlayer>findPlayersInRange(ServerLevel $self, Vec3 base, Number radius)final <T extends Entity> List<T>findSortedEntitiesInRange(LevelAccessor $self, Class<T> clazz, Vec3 base, Number radius)final List<Entity>findSortedEntitiesInRange(LevelAccessor $self, Vec3 base, Number radius, Class<out Entity> types)final <T extends Entity> List<T>findEntitiesInRange(LevelAccessor $self, Class<T> clazz, Vec3 base, Number radius)final List<Entity>findEntitiesInRange(LevelAccessor $self, Vec3 base, Number radius, Class<out Entity> types)final <T extends Entity> BooleanhasEntitiesInRange(LevelAccessor $self, Class<T> clazz, Vec3 base, Number radius)final BooleanhasEntitiesInRange(LevelAccessor $self, Vec3 base, Number radius, Class<out Entity> types)final BooleanhasEntitiesInRangeExcluding(LevelAccessor $self, Entity self, Vec3 base, Number radius, Class<out Entity> types)final <T extends Entity> BooleanhasEntities(ServerLevel $self, Class<T> clazz)final BooleanhasEntities(ServerLevel $self, Class<out Entity> types)-
-
Method Detail
-
findClosestEntityInRange
final <T extends Entity> T findClosestEntityInRange(LevelAccessor $self, Class<T> clazz, Vec3 base, Number radius)
-
findClosestPlayerInRange
final Player findClosestPlayerInRange(LevelAccessor $self, Vec3 base, Number radius)
-
findClosestPlayerInRange
final ServerPlayer findClosestPlayerInRange(ServerLevelAccessor $self, Vec3 base, Number radius)
-
findClosestPlayerInRange
final ServerPlayer findClosestPlayerInRange(ServerLevelAccessor $self, BlockPos base, Number radius)
-
findClosestPlayerInRange
final ServerPlayer findClosestPlayerInRange(ServerLevel $self, Vec3 base, Number radius)
-
findPlayersInRange
final List<Player> findPlayersInRange(LevelAccessor $self, Vec3 base, Number radius)
-
findPlayersInRange
final List<ServerPlayer> findPlayersInRange(ServerLevelAccessor $self, Vec3 base, Number radius)
-
findPlayersInRange
final List<ServerPlayer> findPlayersInRange(ServerLevel $self, Vec3 base, Number radius)
-
findSortedEntitiesInRange
final <T extends Entity> List<T> findSortedEntitiesInRange(LevelAccessor $self, Class<T> clazz, Vec3 base, Number radius)
-
findSortedEntitiesInRange
final List<Entity> findSortedEntitiesInRange(LevelAccessor $self, Vec3 base, Number radius, Class<out Entity> types)
-
findEntitiesInRange
final <T extends Entity> List<T> findEntitiesInRange(LevelAccessor $self, Class<T> clazz, Vec3 base, Number radius)
-
findEntitiesInRange
final List<Entity> findEntitiesInRange(LevelAccessor $self, Vec3 base, Number radius, Class<out Entity> types)
-
hasEntitiesInRange
final <T extends Entity> Boolean hasEntitiesInRange(LevelAccessor $self, Class<T> clazz, Vec3 base, Number radius)
-
hasEntitiesInRange
final Boolean hasEntitiesInRange(LevelAccessor $self, Vec3 base, Number radius, Class<out Entity> types)
-
hasEntitiesInRangeExcluding
final Boolean hasEntitiesInRangeExcluding(LevelAccessor $self, Entity self, Vec3 base, Number radius, Class<out Entity> types)
-
hasEntities
final <T extends Entity> Boolean hasEntities(ServerLevel $self, Class<T> clazz)
-
hasEntities
final Boolean hasEntities(ServerLevel $self, Class<out Entity> types)
-
-
-
-