Class PlotBlockData
java.lang.Object
com.palmergames.bukkit.towny.regen.PlotBlockData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetSize()intintgetX()intgetZ()voidinitialize(List<org.bukkit.ChunkSnapshot> snapshots) voidfills BlockListRestored with zero's to indicate no blocks have been restored yetbooleanReverts an area to the stored image.voidsetBlockList(@NotNull List<String> blockList) fills the BlockListvoidsetHeight(int height) voidsetMinHeight(int minHeight) voidsetSize(int size) voidsetVersion(int version) voidsetX(int x) voidsetZ(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
-