Closed p0t4t0sandwich closed 4 months ago
[x] Server.worlds()
[x] ServerWorld interface for later use
[x] World.getEntities Entity Bounding box/rad ?Predicate(s)
[x] World.getEntities Entity Bounding box/rad (default predicate to true)
X World.getNearestEntity Collection(Entity) Predicate X,Y,Z Bounding box/rad
X BoundingBox
public class VanillaWorld { private final Level world; public VanillaWorld(Level world) { this.world = world; } public Level world() { return world; } public List<Entity> getEntities(Entity entity, int radius, Predicate<?> predicate) { return world .getEntities( ((VanillaEntity) entity).entity(), new AABB(new BlockPos(0, 0, 0)), predicate) .stream() .map(VanillaEntity::new) .map(Entity.class::cast) .toList(); } }
[x] Server.worlds()
[x] ServerWorld interface for later use
[x] World.getEntities Entity Bounding box/rad ?Predicate(s)
[x] World.getEntities Entity Bounding box/rad (default predicate to true)
X World.getNearestEntity Collection(Entity) Predicate X,Y,Z Bounding box/rad
X BoundingBox