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 Plot
boolean
boolean
addPlotAbs
(@NonNull Plot plot) boolean
addPlotIfAbsent
(@NonNull Plot plot) boolean
Get whether plot signs are allowed or not.protected @NonNull PlotManager
getOwnedPlot
(@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 thePlot
at a location.getPlotAbs
(@NonNull PlotId id) Used for the /plot setup command Return null if you do not want to support this featurestatic boolean
isSinglePlotWorld
(String worldName) Returns true if the given string matches the naming system used to identify single plot worlds e.g.void
void
void
Saving core PlotArea settings.Methods inherited from class com.plotsquared.core.plot.PlotArea
addCluster, buildRangeContainsY, canClaim, contains, contains, contains, defaultHome, deleteMeta, equals, forEachBasePlot, getBasePlots, getBorder, getCluster, getCluster, getClusters, getDefaultHome, getFirstIntersectingCluster, getFlag, getFlag, getFlagContainer, getGameMode, getGenerator, getId, getLegacySignMaterial, getMax, getMaxBuildHeight, getMaxGenHeight, getMeta, getMeta, getMin, getMinBuildHeight, getMinGenHeight, 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, 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:
createManager
in classPlotArea
-
loadConfiguration
- Specified by:
loadConfiguration
in classPlotArea
-
saveConfiguration
Description copied from class:PlotArea
Saving core PlotArea settings.- Overrides:
saveConfiguration
in classPlotArea
- Parameters:
config
- Configuration Section
-
loadWorld
-
getSettingNodes
Description copied from class:PlotArea
Used for the /plot setup command Return null if you do not want to support this feature- Specified by:
getSettingNodes
in classPlotArea
- Returns:
- ConfigurationNode[]
-
getOwnedPlot
Description copied from class:PlotArea
Get the owned base plot at a location.- Overrides:
getOwnedPlot
in classPlotArea
- Parameters:
location
- the location- Returns:
- the base plot or null
-
getOwnedPlotAbs
Description copied from class:PlotArea
Get the owned plot at a location.- Overrides:
getOwnedPlotAbs
in classPlotArea
- Parameters:
location
- the location- Returns:
- Plot or null
-
getPlot
Description copied from class:PlotArea
Gets the base plot at a location. -
getPlotAbs
Description copied from class:PlotArea
Gets thePlot
at a location.- Overrides:
getPlotAbs
in classPlotArea
- Parameters:
location
- the location- Returns:
- the
Plot
or null if none exists
-
addPlot
-
addPlotAbs
- Overrides:
addPlotAbs
in classPlotArea
-
addPlotIfAbsent
- Overrides:
addPlotIfAbsent
in classPlotArea
-
allowSigns
Description copied from class:PlotArea
Get whether plot signs are allowed or not.- Overrides:
allowSigns
in classPlotArea
- Returns:
true
if plot signs are allowed,false
otherwise.
-
adapt
-
getPlotAbs
- Overrides:
getPlotAbs
in classPlotArea
-
getPlot
-