Interface BlockEntityArchetypeVolume
- All Superinterfaces:
BlockVolume,Volume
- All Known Subinterfaces:
ArchetypeVolume,BlockEntityArchetypeVolume.Immutable,BlockEntityArchetypeVolume.Modifiable<M>,BlockEntityArchetypeVolume.Mutable,BlockEntityArchetypeVolume.Streamable<B>,BlockEntityArchetypeVolume.Unmodifiable<U>,Schematic
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionblockEntityArchetype(int x, int y, int z) Gets theBlockEntityArchetypefor the block entity carrying block at the given coordinates.default Optional<BlockEntityArchetype>blockEntityArchetype(Vector3i position) Gets theBlockEntityArchetypefor the block entity carrying block at the given coordinates.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 Details
-
blockEntityArchetype
Gets theBlockEntityArchetypefor 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
Gets theBlockEntityArchetypefor the block entity carrying block at the given coordinates.- Parameters:
position- The position- Returns:
- The block entity, if found
-
blockEntityArchetypes
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
-