public interface TileEntityVolume extends MutableBlockVolume
TileEntity
instances.Modifier and Type | Method and Description |
---|---|
MutableBlockVolumeWorker<? extends TileEntityVolume> |
getBlockWorker()
Gets a new block worker for this block volume.
|
Collection<TileEntity> |
getTileEntities()
Return a collection of tile entities contained within this volume,
possibly only returning tile entities only in loaded areas.
|
Collection<TileEntity> |
getTileEntities(Predicate<TileEntity> filter)
Return a collection of tile entities contained within this volume,
possibly only returning tile entities only in loaded areas.
|
Optional<TileEntity> |
getTileEntity(int x,
int y,
int z)
Gets the tile entity at the given position, if it exists.
|
default Optional<TileEntity> |
getTileEntity(com.flowpowered.math.vector.Vector3i position)
Gets the tile entity at the given position, if it exists.
|
getBlockView, getBlockView, getRelativeBlockView, setBlock, setBlock, setBlockType, setBlockType
containsBlock, containsBlock, getBlock, getBlock, getBlockCopy, getBlockCopy, getBlockMax, getBlockMin, getBlockSize, getBlockType, getBlockType, getImmutableBlockCopy, getUnmodifiableBlockView
Collection<TileEntity> getTileEntities()
For world implementations, only some parts of the world is usually loaded, so this method will only return tile entities within those loaded parts.
Collection<TileEntity> getTileEntities(Predicate<TileEntity> filter)
Predicate
before being
returned.
For world implementations, only some parts of the world is usually loaded, so this method will only return tile entities within those loaded parts.
filter
- The filter to apply to the returned entitiesdefault Optional<TileEntity> getTileEntity(com.flowpowered.math.vector.Vector3i position)
position
- The positionOptional.empty()
Optional<TileEntity> getTileEntity(int x, int y, int z)
x
- The X positiony
- The Y positionz
- The Z positionOptional.empty()
MutableBlockVolumeWorker<? extends TileEntityVolume> getBlockWorker()
BlockVolume
getBlockWorker
in interface BlockVolume
getBlockWorker
in interface MutableBlockVolume