Class PlotBlockData
java.lang.Object
com.palmergames.bukkit.towny.regen.PlotBlockData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getSize()
int
int
getX()
int
getZ()
void
initialize
(List<org.bukkit.ChunkSnapshot> snapshots) void
fills BlockListRestored with zero's to indicate no blocks have been restored yetboolean
Reverts an area to the stored image.void
setBlockList
(@NotNull List<String> blockList) fills the BlockListvoid
setHeight
(int height) void
setMinHeight
(int minHeight) void
setSize
(int size) void
setVersion
(int version) void
setX
(int x) void
setZ
(int z)
-
Constructor Details
-
PlotBlockData
-
-
Method Details
-
initialize
-
restoreNextBlock
public boolean restoreNextBlock()Reverts an area to the stored image.- Returns:
- true if there are more blocks to check.
-
getX
public int getX() -
setX
public void setX(int x) -
getZ
public int getZ() -
setZ
public void setZ(int z) -
getSize
public int getSize() -
setSize
public void setSize(int size) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getMinHeight
public int getMinHeight() -
setMinHeight
public void setMinHeight(int minHeight) -
getWorldName
-
getVersion
public int getVersion()- Returns:
- the version
-
setVersion
public void setVersion(int version) - Parameters:
version
- the version to set
-
getBlockList
- Returns:
- the blockList
-
setBlockList
fills the BlockList- Parameters:
blockList
- BlockList (List<String>)
-
resetBlockListRestored
public void resetBlockListRestored()fills BlockListRestored with zero's to indicate no blocks have been restored yet -
getWorldCoord
-