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
Fields inherited from class com.plotsquared.core.generator.GridPlotWorld
SIZE
-
Constructor Summary
ConstructorDescriptionSinglePlotArea(@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
@Nullable Plot
getOwnedPlot(@NonNull Location location)
Get the owned base plot at a location.@Nullable Plot
getOwnedPlotAbs(@NonNull Location location)
Get the owned plot at a location.@Nullable Plot
Gets the base plot at a location.@Nullable Plot
@Nullable Plot
getPlotAbs(@NonNull Location location)
Gets thePlot
at a location.@Nullable Plot
getPlotAbs(@NonNull PlotId id)
Used for the /plot setup command Return null if you do not want to support this featurevoid
loadConfiguration(ConfigurationSection config)
void
void
saveConfiguration(ConfigurationSection config)
Saving core PlotArea settings.Methods inherited from class com.plotsquared.core.plot.PlotArea
addCluster, canClaim, contains, contains, contains, 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, 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
-
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
public boolean allowSigns()Description copied from class:PlotArea
Get whether plot signs are allowed or not.- Overrides:
allowSigns
in classPlotArea
- Returns:
- true if plot signs are allow, false otherwise.
-
adapt
-
getPlotAbs
- Overrides:
getPlotAbs
in classPlotArea
-
getPlot
-