Package com.plotsquared.core.plot
Class PlotSettings
java.lang.Object
com.plotsquared.core.plot.PlotSettings
Generic settings class.
- Does not keep a reference to a parent class
- Direct changes here will not occur in the db (Use the parent plot object for that)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
getComments(String inbox)
boolean[]
boolean
getMerged(int direction)
Check if the plot is merged in a direction
0 = North
1 = East
2 = South
3 = Westvoid
void
setComments(List<PlotComment> comments)
void
setMerged(boolean[] merged)
boolean
setMerged(int direction, boolean merged)
boolean
void
setPosition(BlockLoc position)
void
setRatings(HashMap<UUID,Integer> ratings)
-
Constructor Details
-
PlotSettings
public PlotSettings()
-
-
Method Details
-
getMerged
public boolean getMerged(int direction)Check if the plot is merged in a direction
0 = North
1 = East
2 = South
3 = West- Parameters:
direction
- Direction to check- Returns:
- boolean merged
-
getRatings
-
setRatings
-
setMerged
public boolean setMerged(int direction, boolean merged) -
setMerged
-
getPosition
-
setPosition
-
getComments
-
getMerged
public boolean[] getMerged() -
setMerged
public void setMerged(boolean[] merged) -
getAlias
-
setAlias
-
setComments
-