public abstract class AbstractBlockBuffer extends Object implements org.spongepowered.api.world.extent.BlockVolume
Modifier and Type | Field and Description |
---|---|
protected com.flowpowered.math.vector.Vector3i |
end |
protected com.flowpowered.math.vector.Vector3i |
size |
protected com.flowpowered.math.vector.Vector3i |
start |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBlockBuffer(com.flowpowered.math.vector.Vector3i start,
com.flowpowered.math.vector.Vector3i size) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkRange(int x,
int y,
int z) |
boolean |
containsBlock(int x,
int y,
int z) |
boolean |
containsBlock(com.flowpowered.math.vector.Vector3i position) |
org.spongepowered.api.block.BlockState |
getBlock(com.flowpowered.math.vector.Vector3i position) |
org.spongepowered.api.world.extent.MutableBlockVolume |
getBlockCopy() |
com.flowpowered.math.vector.Vector3i |
getBlockMax() |
com.flowpowered.math.vector.Vector3i |
getBlockMin() |
com.flowpowered.math.vector.Vector3i |
getBlockSize() |
org.spongepowered.api.block.BlockType |
getBlockType(int x,
int y,
int z) |
org.spongepowered.api.block.BlockType |
getBlockType(com.flowpowered.math.vector.Vector3i position) |
protected int |
getIndex(int x,
int y,
int z) |
String |
toString() |
protected final com.flowpowered.math.vector.Vector3i start
protected final com.flowpowered.math.vector.Vector3i size
protected final com.flowpowered.math.vector.Vector3i end
protected AbstractBlockBuffer(com.flowpowered.math.vector.Vector3i start, com.flowpowered.math.vector.Vector3i size)
protected void checkRange(int x, int y, int z)
protected int getIndex(int x, int y, int z)
public com.flowpowered.math.vector.Vector3i getBlockMax()
getBlockMax
in interface org.spongepowered.api.world.extent.BlockVolume
public com.flowpowered.math.vector.Vector3i getBlockMin()
getBlockMin
in interface org.spongepowered.api.world.extent.BlockVolume
public com.flowpowered.math.vector.Vector3i getBlockSize()
getBlockSize
in interface org.spongepowered.api.world.extent.BlockVolume
public boolean containsBlock(com.flowpowered.math.vector.Vector3i position)
containsBlock
in interface org.spongepowered.api.world.extent.BlockVolume
public boolean containsBlock(int x, int y, int z)
containsBlock
in interface org.spongepowered.api.world.extent.BlockVolume
public org.spongepowered.api.block.BlockState getBlock(com.flowpowered.math.vector.Vector3i position)
getBlock
in interface org.spongepowered.api.world.extent.BlockVolume
public org.spongepowered.api.block.BlockType getBlockType(com.flowpowered.math.vector.Vector3i position)
getBlockType
in interface org.spongepowered.api.world.extent.BlockVolume
public org.spongepowered.api.block.BlockType getBlockType(int x, int y, int z)
getBlockType
in interface org.spongepowered.api.world.extent.BlockVolume
public org.spongepowered.api.world.extent.MutableBlockVolume getBlockCopy()
getBlockCopy
in interface org.spongepowered.api.world.extent.BlockVolume