Interface BlockEntityArchetypeVolume
-
- All Superinterfaces:
BlockVolume
,Volume
- All Known Subinterfaces:
ArchetypeVolume
,BlockEntityArchetypeVolume.Immutable
,BlockEntityArchetypeVolume.Modifiable<M>
,BlockEntityArchetypeVolume.Mutable
,BlockEntityArchetypeVolume.Streamable<B>
,BlockEntityArchetypeVolume.Unmodifiable<U>
,Schematic
public interface BlockEntityArchetypeVolume extends BlockVolume
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BlockEntityArchetypeVolume.Immutable
static interface
BlockEntityArchetypeVolume.Modifiable<M extends BlockEntityArchetypeVolume.Modifiable<M>>
static interface
BlockEntityArchetypeVolume.Mutable
static interface
BlockEntityArchetypeVolume.Streamable<B extends BlockEntityArchetypeVolume.Streamable<B>>
static interface
BlockEntityArchetypeVolume.Unmodifiable<U extends BlockEntityArchetypeVolume.Unmodifiable<U>>
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<BlockEntityArchetype>
blockEntityArchetype(int x, int y, int z)
Gets theBlockEntityArchetype
for the block entity carrying block at the given coordinates.default java.util.Optional<BlockEntityArchetype>
blockEntityArchetype(Vector3i position)
Gets theBlockEntityArchetype
for the block entity carrying block at the given coordinates.java.util.Map<Vector3i,BlockEntityArchetype>
blockEntityArchetypes()
Gets a map containing all block entity archetypes within this volume, keyed by their positions within the volume.-
Methods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume
block, block, fluid, fluid, highestPositionAt, highestYAt, highestYAt
-
-
-
-
Method Detail
-
blockEntityArchetype
java.util.Optional<BlockEntityArchetype> blockEntityArchetype(int x, int y, int z)
Gets theBlockEntityArchetype
for the block entity carrying block at the given coordinates.- Parameters:
x
- The X positiony
- The Y positionz
- The Z position- Returns:
- The block entity, if found
-
blockEntityArchetype
default java.util.Optional<BlockEntityArchetype> blockEntityArchetype(Vector3i position)
Gets theBlockEntityArchetype
for the block entity carrying block at the given coordinates.- Parameters:
position
- The position- Returns:
- The block entity, if found
-
blockEntityArchetypes
java.util.Map<Vector3i,BlockEntityArchetype> blockEntityArchetypes()
Gets a map containing all block entity archetypes within this volume, keyed by their positions within the volume.- Returns:
- The block entity map
-
-