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
- All Implemented Interfaces:
net.kyori.adventure.text.ComponentLike
-
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) getQueue()Single Plot Areas must provide a different QueueCoordinator than other plot areas, otherwise plot deletion fails.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, asComponent, buildRangeContainsY, canClaim, contains, contains, contains, defaultHome, deleteMeta, equals, forEachBasePlot, getBasePlots, getBorder, getBorder, getBorderSize, getCluster, getCluster, getClusters, getFirstIntersectingCluster, getFlag, getFlag, getFlagContainer, getGameMode, getGenerator, getId, getMax, getMaxBuildHeight, getMaxComponentHeight, getMaxGenHeight, getMeta, getMeta, getMin, getMinBuildHeight, getMinComponentHeight, getMinGenHeight, getNextFreePlot, getOwnedPlot, getOwnedPlotAbs, getPlotBiome, getPlotCount, getPlotCount, getPlotCount, getPlotEntries, getPlotManager, getPlots, getPlots, getPlots, getPlotsAbs, getPlotSelectionOwned, getPlotsRaw, getPrices, 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, mergePlots, nonmemberHome, notifyIfOutsideBuildArea, removeCluster, removePlot, setAllowSigns, setDefaultHome, setMeta, setTerrain, setType, setupBorder, signMaterial, toString, useEconomy
-
Field Details
-
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
-
getQueue
Single Plot Areas must provide a different QueueCoordinator than other plot areas, otherwise plot deletion fails. When deleting plots, the PlotModificationManager retrieves a QueueCoordinator from the associated PlotArea, which accesses the plots world. For SinglePlotAreas this world is null at this point, as the whole world is deleted (and the areas world name being `*`).
The queue doesn't know when it's used, so this always provides a QueueCoordinator that doesn't do anything and doesn't contain any tasks. This isn't really bad, as SinglePlotAreas don't utilize the Queue as of now. -
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
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
-