public interface UnmodifiableBlockVolume extends BlockVolume
BlockVolume
Modifier and Type | Method and Description |
---|---|
UnmodifiableBlockVolume |
getBlockView(DiscreteTransform3 transform)
Returns a new volume that is viewed through some transformation.
|
UnmodifiableBlockVolume |
getBlockView(com.flowpowered.math.vector.Vector3i newMin,
com.flowpowered.math.vector.Vector3i newMax)
Returns a new volume that is the same or smaller than the current volume.
|
BlockVolumeWorker<? extends UnmodifiableBlockVolume> |
getBlockWorker()
Gets a new block worker for this block volume.
|
default UnmodifiableBlockVolume |
getRelativeBlockView()
Returns a new volume that is translated so that
BlockVolume.getBlockMin() returns Vector3i.ZERO . |
default UnmodifiableBlockVolume |
getUnmodifiableBlockView()
Returns a new volume that cannot be modified through this view.
|
containsBlock, containsBlock, getBlock, getBlock, getBlockCopy, getBlockCopy, getBlockMax, getBlockMin, getBlockSize, getBlockType, getBlockType, getImmutableBlockCopy
UnmodifiableBlockVolume getBlockView(com.flowpowered.math.vector.Vector3i newMin, com.flowpowered.math.vector.Vector3i newMax)
getBlockView
in interface BlockVolume
newMin
- The new minimum coordinates in this volumenewMax
- The new maximum coordinates in this volumePositionOutOfBoundsException
- If the new minimum and maximum are
outside the current volumeUnmodifiableBlockVolume getBlockView(DiscreteTransform3 transform)
getBlockView
in interface BlockVolume
transform
- The transformation to be applieddefault UnmodifiableBlockVolume getRelativeBlockView()
BlockVolume.getBlockMin()
returns Vector3i.ZERO
. This
does not copy the blocks, it only provides a new view of the storage.getRelativeBlockView
in interface BlockVolume
default UnmodifiableBlockVolume getUnmodifiableBlockView()
BlockVolume
getUnmodifiableBlockView
in interface BlockVolume
BlockVolumeWorker<? extends UnmodifiableBlockVolume> getBlockWorker()
BlockVolume
getBlockWorker
in interface BlockVolume