Package com.plotsquared.core.generator
Class HybridPlotWorld
java.lang.Object
com.plotsquared.core.plot.PlotArea
com.plotsquared.core.generator.GridPlotWorld
com.plotsquared.core.generator.SquarePlotWorld
com.plotsquared.core.generator.ClassicPlotWorld
com.plotsquared.core.generator.HybridPlotWorld
- All Implemented Interfaces:
ComponentLike
-
Field Summary
FieldsModifier and TypeFieldDescriptionshortshortbooleanbooleanintThe Y level at which schematic generation will start, lowest of either road or plot schematic generation.Fields inherited from class com.plotsquared.core.generator.ClassicPlotWorld
CLAIMED_WALL_BLOCK, MAIN_BLOCK, PLACE_TOP_BLOCK, PLOT_BEDROCK, PLOT_HEIGHT, ROAD_BLOCK, ROAD_HEIGHT, TOP_BLOCK, WALL_BLOCK, WALL_FILLING, WALL_HEIGHTFields inherited from class com.plotsquared.core.generator.SquarePlotWorld
PLOT_WIDTH, ROAD_OFFSET_X, ROAD_OFFSET_Z, ROAD_WIDTHFields inherited from class com.plotsquared.core.generator.GridPlotWorld
SIZE -
Constructor Summary
ConstructorsConstructorDescriptionHybridPlotWorld(String worldName, String id, @NonNull IndependentPlotGenerator generator, PlotId min, PlotId max, @NonNull YamlConfiguration worldConfiguration, @NonNull GlobalBlockQueue blockQueue) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull PlotManagerGet the entities contained within the plot schematic for generation.Get the minimum point of the plot schematic for generation.intGet the y value where the plot schematic should be pasted from.intGet the y value where the road schematic should be pasted from.Get the root folder for this world's generation schematics.getSignLocation(@NonNull Plot plot) booleanisCompatible(@NonNull PlotArea plotArea) Check if a PlotArea is compatible (move/copy etc.).voidThis method is called when a world loads.booleanGet if post-generation population of chunks with tiles/entities is needed for this world.static BaseBlockvoidMethods inherited from class com.plotsquared.core.generator.ClassicPlotWorld
getSettingNodesMethods inherited from class com.plotsquared.core.plot.PlotArea
addCluster, addPlot, addPlotAbs, addPlotIfAbsent, allowSigns, asComponent, buildRangeContainsY, canClaim, contains, contains, contains, defaultHome, deleteMeta, equals, forEachBasePlot, getBasePlots, getBorder, getCluster, getCluster, getClusters, getFirstIntersectingCluster, getFlag, getFlag, getFlagContainer, getGameMode, getGenerator, getId, getMax, getMaxBuildHeight, getMaxGenHeight, getMeta, getMeta, getMin, getMinBuildHeight, getMinGenHeight, getNextFreePlot, getOwnedPlot, getOwnedPlot, getOwnedPlotAbs, getOwnedPlotAbs, getPlot, getPlot, getPlotAbs, getPlotAbs, 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, isForcingPlotChat, isHomeAllowNonmember, isMiscSpawnUnowned, isMobSpawnerSpawning, isMobSpawning, isPlotChat, isRoadFlags, isSchematicClaimSpecify, isSchematicOnClaim, isSpawnBreeding, isSpawnCustom, isSpawnEggs, legacySignMaterial, loadDefaultConfiguration, mergePlots, mergePlots, nonmemberHome, notifyIfOutsideBuildArea, removeCluster, removePlot, saveConfiguration, setAllowSigns, setDefaultHome, setMeta, setTerrain, setType, setupBorder, signMaterial, toString, useEconomy
-
Field Details
-
ROAD_SCHEMATIC_ENABLED
-
PLOT_SCHEMATIC
-
PATH_WIDTH_LOWER
-
PATH_WIDTH_UPPER
-
G_SCH
-
G_SCH_B
-
SCHEM_Y
The Y level at which schematic generation will start, lowest of either road or plot schematic generation.
-
-
Constructor Details
-
HybridPlotWorld
@Inject public HybridPlotWorld(String worldName, @Nullable String id, @NonNull IndependentPlotGenerator generator, @Nullable PlotId min, @Nullable PlotId max, @NonNull YamlConfiguration worldConfiguration, @NonNull GlobalBlockQueue blockQueue)
-
-
Method Details
-
rotate
-
createManager
- Specified by:
createManagerin classPlotArea
-
getSignLocation
-
loadConfiguration
This method is called when a world loads. Make sure you set all your constants here. You are provided with the configuration section for that specific world.
- Overrides:
loadConfigurationin classClassicPlotWorld
-
isCompatible
Description copied from class:PlotAreaCheck if a PlotArea is compatible (move/copy etc.).- Overrides:
isCompatiblein classPlotArea- Parameters:
plotArea- thePlotAreato compare- Returns:
trueif both areas are compatible
-
setupSchematics
-
getPlotSchematicEntities
Get the entities contained within the plot schematic for generation. Intended for internal use only.- Since:
- 6.9.0
-
getPlotSchematicMinPoint
Get the minimum point of the plot schematic for generation. Intended for internal use only.- Since:
- 6.9.0
-
populationNeeded
Get if post-generation population of chunks with tiles/entities is needed for this world. Not for public API use.- Since:
- 6.9.0
-
getSchematicRoot
Get the root folder for this world's generation schematics. May be null if schematics not initialised viasetupSchematics()- Since:
- 6.9.0
-
getPlotYStart
Get the y value where the plot schematic should be pasted from.- Returns:
- plot schematic y start value
- Since:
- 7.0.0
-
getRoadYStart
Get the y value where the road schematic should be pasted from.- Returns:
- road schematic y start value
- Since:
- 7.0.0
-