Package com.plotsquared.core.plot.world
Class SinglePlotArea
java.lang.Object
com.plotsquared.core.plot.PlotArea
com.plotsquared.core.generator.GridPlotWorld
com.plotsquared.core.plot.world.SinglePlotArea
-
Field Summary
FieldsFields inherited from class com.plotsquared.core.generator.GridPlotWorld
SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSinglePlotArea(@NonNull PlotAreaManager plotAreaManager, @NonNull EventDispatcher eventDispatcher, @NonNull PlotListener plotListener, @NonNull YamlConfiguration worldConfiguration, @NonNull GlobalBlockQueue globalBlockQueue) -
Method Summary
Modifier and TypeMethodDescriptionprotected PlotbooleanbooleanaddPlotAbs(@NonNull Plot plot) booleanaddPlotIfAbsent(@NonNull Plot plot) booleanGet whether plot signs are allowed or not.protected @NonNull PlotManagergetOwnedPlot(@NonNull Location location) Get the owned base plot at a location.getOwnedPlotAbs(@NonNull Location location) Get the owned plot at a location.Gets the base plot at a location.getPlotAbs(@NonNull Location location) Gets thePlotat a location.getPlotAbs(@NonNull PlotId id) Used for the /plot setup command Return null if you do not want to support this featurestatic booleanisSinglePlotWorld(String worldName) Returns true if the given string matches the naming system used to identify single plot worlds e.g.voidvoidvoidSaving core PlotArea settings.Methods inherited from class com.plotsquared.core.plot.PlotArea
addCluster, canClaim, contains, contains, contains, defaultHome, deleteMeta, equals, forEachBasePlot, getBasePlots, getBorder, getCluster, getCluster, getClusters, getDefaultHome, getFirstIntersectingCluster, getFlag, getFlag, getFlagContainer, getGameMode, getGenerator, getId, getLegacySignMaterial, getMax, getMaxBuildHeight, getMeta, getMeta, getMin, getMinBuildHeight, getNextFreePlot, getNonmemberHome, getOwnedPlot, getOwnedPlotAbs, getPlotBiome, getPlotCount, getPlotCount, getPlotCount, getPlotEntries, getPlotManager, getPlots, getPlots, getPlots, getPlotsAbs, getPlotSelectionOwned, getPlotsRaw, getPrices, getQueue, getRegion, getRoadFlag, getRoadFlag, getRoadFlagContainer, getSchematicFile, getSchematics, getSignMaterial, getTerrain, getType, getWorldHash, getWorldName, hashCode, hasPlot, hasSchematic, hasWorldBorder, isAutoMerge, isCompatible, isForcingPlotChat, isHomeAllowNonmember, isMiscSpawnUnowned, isMobSpawnerSpawning, isMobSpawning, isPlotChat, isRoadFlags, isSchematicClaimSpecify, isSchematicOnClaim, isSpawnBreeding, isSpawnCustom, isSpawnEggs, legacySignMaterial, loadDefaultConfiguration, mergePlots, nonmemberHome, removeCluster, removePlot, setAllowSigns, setDefaultHome, setMeta, setTerrain, setType, setupBorder, signMaterial, toString, useEconomy
-
Field Details
-
VOID
public boolean VOID
-
-
Constructor Details
-
SinglePlotArea
public SinglePlotArea(@NonNull PlotAreaManager plotAreaManager, @NonNull EventDispatcher eventDispatcher, @NonNull PlotListener plotListener, @NonNull YamlConfiguration worldConfiguration, @NonNull GlobalBlockQueue globalBlockQueue)
-
-
Method Details
-
isSinglePlotWorld
Returns true if the given string matches the naming system used to identify single plot worlds e.g. -1_5 represents plot id *;-1;5. "*" being the plot area name given to single plot worldPlotArea.- Since:
- 6.1.4
-
createManager
- Specified by:
createManagerin classPlotArea
-
loadConfiguration
- Specified by:
loadConfigurationin classPlotArea
-
saveConfiguration
Description copied from class:PlotAreaSaving core PlotArea settings.- Overrides:
saveConfigurationin classPlotArea- Parameters:
config- Configuration Section
-
loadWorld
-
getSettingNodes
Description copied from class:PlotAreaUsed for the /plot setup command Return null if you do not want to support this feature- Specified by:
getSettingNodesin classPlotArea- Returns:
- ConfigurationNode[]
-
getOwnedPlot
Description copied from class:PlotAreaGet the owned base plot at a location.- Overrides:
getOwnedPlotin classPlotArea- Parameters:
location- the location- Returns:
- the base plot or null
-
getOwnedPlotAbs
Description copied from class:PlotAreaGet the owned plot at a location.- Overrides:
getOwnedPlotAbsin classPlotArea- Parameters:
location- the location- Returns:
- Plot or null
-
getPlot
Description copied from class:PlotAreaGets the base plot at a location. -
getPlotAbs
Description copied from class:PlotAreaGets thePlotat a location.- Overrides:
getPlotAbsin classPlotArea- Parameters:
location- the location- Returns:
- the
Plotor null if none exists
-
addPlot
-
addPlotAbs
- Overrides:
addPlotAbsin classPlotArea
-
addPlotIfAbsent
- Overrides:
addPlotIfAbsentin classPlotArea
-
allowSigns
public boolean allowSigns()Description copied from class:PlotAreaGet whether plot signs are allowed or not.- Overrides:
allowSignsin classPlotArea- Returns:
trueif plot signs are allowed,falseotherwise.
-
adapt
-
getPlotAbs
- Overrides:
getPlotAbsin classPlotArea
-
getPlot
-