public class ArrayVoxelSpace
Class ArrayVoxelSpace. Provides arrayvoxelspace functionality for the Hytale server.
java.lang.Object > ArrayVoxelSpace
Field Summary
name
protected
String
name
Field name.
fastReset
protected
T[]
fastReset
Field fastReset.
origin
protected
VoxelCoordinate
origin
Field origin.
clone
final
ArrayVoxelSpace
clone
Field clone.
Method Detail
setFastResetTo
public
void
setFastResetTo
(final T e)
Method setFastResetTo.
- Parameters:
final Te
disableFastReset
public
void
disableFastReset
()
Method disableFastReset.
hasFastReset
public
boolean
hasFastReset
()
Method hasFastReset.
fastReset
public
void
fastReset
()
Method fastReset.
sizeX
public
int
sizeX
()
Method sizeX.
sizeY
public
int
sizeY
()
Method sizeY.
sizeZ
public
int
sizeZ
()
Method sizeZ.
set
public
boolean
set
(final T content, final int x, final int y, final int z)
Method set.
- Parameters:
final Tcontentfinal intxfinal intyfinal intz
setOrigin
public
void
setOrigin
(final int x, final int y, final int z)
Method setOrigin.
- Parameters:
final intxfinal intyfinal intz
getContent
public
T
getContent
(final int x, final int y, final int z)
Method getContent.
- Parameters:
final intxfinal intyfinal intz
IndexOutOfBoundsException
public
new
IndexOutOfBoundsException
("Coordinates outside VoxelSpace: " + x + " " + y + " " + z + " constraints " + this.minX()
Method IndexOutOfBoundsException.
- Parameters:
"Coordinates outside VoxelSpace: " + x + " " + y + " " + z + " constraints " +this.minX(
replace
public
boolean
replace
(final T replacement, final int x, final int y, final int z, @Nonnull final Predicate mask)
Method replace.
- Parameters:
final Treplacementfinal intxfinal intyfinal intz@Nonnull final Predicatemask
toArray
public
T[]
toArray
()
Method toArray.
getOriginX
public
int
getOriginX
()
Method getOriginX.
getOriginY
public
int
getOriginY
()
Method getOriginY.
getOriginZ
public
int
getOriginZ
()
Method getOriginZ.
getName
public
String
getName
()
Method getName.
isInsideSpace
public
boolean
isInsideSpace
(final int x, final int y, final int z)
Method isInsideSpace.
- Parameters:
final intxfinal intyfinal intz
minX
public
int
minX
()
Method minX.
maxX
public
int
maxX
()
Method maxX.
minY
public
int
minY
()
Method minY.
maxY
public
int
maxY
()
Method maxY.
minZ
public
int
minZ
()
Method minZ.
maxZ
public
int
maxZ
()
Method maxZ.
arrayIndex
private
int
arrayIndex
(final int x, final int y, final int z)
Method arrayIndex.
- Parameters:
final intxfinal intyfinal intz
toString
public
String
toString
()
Method toString.