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
Modifier and TypeFieldDescriptionshort
short
boolean
int
boolean
int
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_HEIGHT
Fields inherited from class com.plotsquared.core.generator.SquarePlotWorld
PLOT_WIDTH, ROAD_OFFSET_X, ROAD_OFFSET_Z, ROAD_WIDTH
Fields inherited from class com.plotsquared.core.generator.GridPlotWorld
SIZE
-
Constructor Summary
ConstructorDescriptionHybridPlotWorld(String worldName, String id, @NonNull IndependentPlotGenerator generator, PlotId min, PlotId max, @NonNull YamlConfiguration worldConfiguration, @NonNull GlobalBlockQueue blockQueue)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOverlayBiome(short x, short z, com.sk89q.worldedit.world.biome.BiomeType id)
void
addOverlayBlock(short x, short y, short z, com.sk89q.worldedit.world.block.BaseBlock id, boolean rotate, int height)
protected @NonNull PlotManager
getRoot()
getSignLocation(@NonNull Plot plot)
boolean
isCompatible(@NonNull PlotArea plotArea)
Check if a PlotArea is compatible (move/copy etc.).void
loadConfiguration(ConfigurationSection config)
This method is called when a world loads.static com.sk89q.worldedit.world.block.BaseBlock
rotate(com.sk89q.worldedit.world.block.BaseBlock id)
void
static byte
wrap(byte data, int start)
static byte
wrap2(byte data, int start)
Methods inherited from class com.plotsquared.core.generator.ClassicPlotWorld
getSettingNodes
Methods inherited from class com.plotsquared.core.plot.PlotArea
addCluster, addPlot, addPlotAbs, addPlotIfAbsent, allowSigns, 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, 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, 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
public static com.sk89q.worldedit.world.block.BaseBlock rotate(com.sk89q.worldedit.world.block.BaseBlock id) -
createManager
- Specified by:
createManager
in 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:
loadConfiguration
in classClassicPlotWorld
-
isCompatible
Description copied from class:PlotArea
Check if a PlotArea is compatible (move/copy etc.).- Overrides:
isCompatible
in classPlotArea
- Parameters:
plotArea
- thePlotArea
to compare- Returns:
- true if both areas are compatible
-
setupSchematics
-
addOverlayBlock
public void addOverlayBlock(short x, short y, short z, com.sk89q.worldedit.world.block.BaseBlock id, boolean rotate, int height) -
addOverlayBiome
public void addOverlayBiome(short x, short z, com.sk89q.worldedit.world.biome.BiomeType id) -
getRoot
-