Skip to content

Commit b5076e9

Browse files
tyhdefudualspiral
authored andcommitted
Add .entities in EntityVolume, lift from ServerWorld
1 parent a1902a2 commit b5076e9

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/main/java/org/spongepowered/api/world/server/ServerWorld.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,7 @@ default boolean restoreSnapshot(final Vector3i position, final BlockSnapshot sna
209209

210210
@Override
211211
Collection<ServerPlayer> players();
212-
213-
/**
214-
* Gets all the {@link Entity entities} currently loaded in this world.
215-
*
216-
* @return The entities
217-
*/
218-
Collection<? extends Entity> entities();
219-
212+
220213
/**
221214
* Gets all {@link Raid}s occuring in this {@link ServerWorld}.
222215
*

src/main/java/org/spongepowered/api/world/volume/entity/EntityVolume.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ public interface EntityVolume extends Volume {
7575
*/
7676
Optional<Entity> entity(UUID uuid);
7777

78+
/**
79+
* Gets all the loaded entities in this entity volume, in no particular
80+
* order.
81+
*
82+
* <p>This collection is unmodifiable.</p>
83+
*
84+
* @return All entities in this volume.
85+
*/
86+
Collection<? extends Entity> entities();
87+
7888
/**
7989
* Gets all the entities that intersect the bounding box, in no particular
8090
* order.

0 commit comments

Comments
 (0)