public interface ArchetypeVolume extends MutableBlockVolume
Modifier and Type | Method and Description |
---|---|
void |
apply(Location<World> location,
BlockChangeFlag changeFlag)
Applies this archetype at the given location.
|
MutableBlockVolumeWorker<? extends ArchetypeVolume> |
getBlockWorker()
Gets a new block worker for this block volume.
|
default ListMultimap<com.flowpowered.math.vector.Vector3d,EntityArchetype> |
getEntitiesByPosition() |
default Optional<EntityArchetype> |
getEntityArchetype(double x,
double y,
double z) |
default Collection<EntityArchetype> |
getEntityArchetypes() |
Optional<TileEntityArchetype> |
getTileEntityArchetype(int x,
int y,
int z)
Gets the
TileEntityArchetype for the tile entity carrying block
at the given coordinates. |
default Optional<TileEntityArchetype> |
getTileEntityArchetype(com.flowpowered.math.vector.Vector3i position)
Gets the
TileEntityArchetype for the tile entity carrying block
at the given coordinates. |
Map<com.flowpowered.math.vector.Vector3i,TileEntityArchetype> |
getTileEntityArchetypes()
Gets a map containing all tile entity archetypes within this volume,
keyed by their positions within the volume.
|
getBlockView, getBlockView, getRelativeBlockView, setBlock, setBlock, setBlockType, setBlockType
containsBlock, containsBlock, getBlock, getBlock, getBlockCopy, getBlockCopy, getBlockMax, getBlockMin, getBlockSize, getBlockType, getBlockType, getImmutableBlockCopy, getUnmodifiableBlockView
void apply(Location<World> location, BlockChangeFlag changeFlag)
location
- The location to apply atchangeFlag
- The flag to use for toggling various operations on
block placementOptional<TileEntityArchetype> getTileEntityArchetype(int x, int y, int z)
TileEntityArchetype
for the tile entity carrying block
at the given coordinates.x
- The X positiony
- The Y positionz
- The Z positiondefault Optional<TileEntityArchetype> getTileEntityArchetype(com.flowpowered.math.vector.Vector3i position)
TileEntityArchetype
for the tile entity carrying block
at the given coordinates.position
- The positionMap<com.flowpowered.math.vector.Vector3i,TileEntityArchetype> getTileEntityArchetypes()
default Optional<EntityArchetype> getEntityArchetype(double x, double y, double z)
default ListMultimap<com.flowpowered.math.vector.Vector3d,EntityArchetype> getEntitiesByPosition()
default Collection<EntityArchetype> getEntityArchetypes()
MutableBlockVolumeWorker<? extends ArchetypeVolume> getBlockWorker()
BlockVolume
getBlockWorker
in interface BlockVolume
getBlockWorker
in interface MutableBlockVolume