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
-
Field Summary
FieldsModifier and TypeFieldDescriptionshortshortbooleanintbooleanintFields 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 TypeMethodDescriptionvoidaddOverlayBiome(short x, short z, BiomeType id) voidaddOverlayBlock(short x, short y, short z, BaseBlock id, boolean rotate, int height) protected @NonNull PlotManagergetRoot()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.static BaseBlockvoidstatic bytewrap(byte data, int start) static bytewrap2(byte data, int start) Methods inherited from class com.plotsquared.core.generator.ClassicPlotWorld
getSettingNodesMethods inherited from class com.plotsquared.core.plot.PlotArea
addCluster, addPlot, addPlotAbs, addPlotIfAbsent, allowSigns, 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, 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, nonmemberHome, removeCluster, removePlot, saveConfiguration, setAllowSigns, setDefaultHome, setMeta, setTerrain, setType, setupBorder, signMaterial, toString, useEconomy
-
Field Details
-
ROAD_SCHEMATIC_ENABLED
public boolean ROAD_SCHEMATIC_ENABLED -
PLOT_SCHEMATIC
public boolean PLOT_SCHEMATIC -
PLOT_SCHEMATIC_HEIGHT
public int PLOT_SCHEMATIC_HEIGHT -
PATH_WIDTH_LOWER
public short PATH_WIDTH_LOWER -
PATH_WIDTH_UPPER
public short PATH_WIDTH_UPPER -
G_SCH
-
G_SCH_B
-
SCHEM_Y
public int SCHEM_Y
-
-
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
-
wrap
public static byte wrap(byte data, int start) -
wrap2
public static byte wrap2(byte data, int start) -
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
-
addOverlayBlock
-
addOverlayBiome
-
getRoot
-