Interface EntityArchetypeVolume.Streamable<B extends EntityArchetypeVolume.Streamable<B>>
-
- All Superinterfaces:
EntityArchetypeVolume
,Volume
- All Known Subinterfaces:
ArchetypeVolume
,EntityArchetypeVolume.Immutable
,EntityArchetypeVolume.Modifiable<M>
,EntityArchetypeVolume.Mutable
,EntityArchetypeVolume.Unmodifiable<U>
,Schematic
- Enclosing interface:
- EntityArchetypeVolume
public static interface EntityArchetypeVolume.Streamable<B extends EntityArchetypeVolume.Streamable<B>> extends EntityArchetypeVolume
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.archetype.entity.EntityArchetypeVolume
EntityArchetypeVolume.Immutable, EntityArchetypeVolume.Modifiable<M extends EntityArchetypeVolume.Modifiable<M>>, EntityArchetypeVolume.Mutable, EntityArchetypeVolume.Streamable<B extends EntityArchetypeVolume.Streamable<B>>, EntityArchetypeVolume.Unmodifiable<U extends EntityArchetypeVolume.Unmodifiable<U>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.stream.Stream<EntityArchetypeEntry>
entitiesByPosition()
Gets aStream
<EntityArchetypeEntry
> from this volume such that possibly multipleEntityArchetypes
can exist at the samecoordinate
position.VolumeStream<B,EntityArchetype>
entityArchetypeStream(Vector3i min, Vector3i max, StreamOptions options)
Gets aVolumeStream
<B,
EntityArchetype
> from this volume such that themin
andmax
are contained within this volume.-
Methods inherited from interface org.spongepowered.api.world.volume.archetype.entity.EntityArchetypeVolume
entityArchetypes, entityArchetypes, entityArchetypesByPosition
-
-
-
-
Method Detail
-
entityArchetypeStream
VolumeStream<B,EntityArchetype> entityArchetypeStream(Vector3i min, Vector3i max, StreamOptions options)
Gets aVolumeStream
<B,
EntityArchetype
> from this volume such that themin
andmax
are contained within this volume.- Parameters:
min
- The minimum coordinate setmax
- The maximum coordinate setoptions
- The options to construct the stream- Returns:
- The volume stream
-
entitiesByPosition
java.util.stream.Stream<EntityArchetypeEntry> entitiesByPosition()
Gets aStream
<EntityArchetypeEntry
> from this volume such that possibly multipleEntityArchetypes
can exist at the samecoordinate
position. A more precise variation ofentityArchetypeStream(Vector3i, Vector3i, StreamOptions)
that populates the entire stream of existing archetypes, regardless of position.Note that it may be possible the archetypes are returned as copies in the case of an
immutable volume
. It is advisable that mutating the returned archetypes are destined for submission to either aEntityArchetypeVolume.Mutable
or being applied to anEntityVolume.Mutable
directly after the fact.- Returns:
- The stream
-
-