Package net.pl3x.map.core.world
Class World
java.lang.Object
net.pl3x.map.core.Keyed
net.pl3x.map.core.world.World
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PathMatcherstatic final PathMatcherstatic final PathMatcher -
Constructor Summary
ConstructorsConstructorDescriptionWorld(@NotNull String name, long seed, @NotNull Point spawn, @NotNull World.Type type, @NotNull Path regionDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()boolean@NotNull BiomeManager@NotNull BiomeRegistryabstract doubleabstract doubleabstract doubleabstract double@NotNull Chunk@NotNull WorldConfig@NotNull Collection<@NotNull Path>@NotNull Pathabstract <T> TgetLevel()abstract int@NotNull Path@NotNull UpdateMarkerDataabstract intabstract int@NotNull StringgetName()abstract @NotNull Collection<@NotNull Player>@NotNull Region@NotNull Path@NotNull Collection<@NotNull Path>@NotNull RegionModifiedState@NotNull Map<@NotNull String,@NotNull Renderer.Builder> longgetSeed()int@NotNull PointgetSpawn()@NotNull Path@NotNull World.TypegetType()Get the world's type.abstract booleaninthashCode()abstract longhashSeed(long seed) protected voidinit()booleanGet whether this world is enabled.@NotNull Collection<@NotNull Point>listRegions(boolean ignoreTimestamp) abstract @NotNull StringtoString()voidunloadRegion(int regionX, int regionZ) booleanvisibleBlock(int blockX, int blockZ) booleanvisibleChunk(int chunkX, int chunkZ) booleanvisibleRegion(int regionX, int regionZ)
-
Field Details
-
JSON_MATCHER
-
MCA_MATCHER
-
PNG_MATCHER
-
-
Constructor Details
-
World
public World(@NotNull @NotNull String name, long seed, @NotNull @NotNull Point spawn, @NotNull @NotNull World.Type type, @NotNull @NotNull Path regionDirectory)
-
-
Method Details
-
init
protected void init() -
cleanup
public void cleanup() -
getCustomMarkersDirectory
-
getMarkersDirectory
-
getRegionDirectory
-
getTilesDirectory
-
getConfig
-
getRegionModifiedState
-
getMarkerTask
-
getRenderers
-
isEnabled
public boolean isEnabled()Get whether this world is enabled.- Returns:
- true if enabled
-
getName
-
getSeed
public long getSeed() -
getSpawn
-
getSkylight
public int getSkylight() -
getType
Get the world's type.- Returns:
- world type
-
getBiomeManager
-
getBiomeRegistry
-
getLayerRegistry
-
getLevel
@NotNull public abstract <T> T getLevel() -
hashSeed
public abstract long hashSeed(long seed) -
hasCeiling
public abstract boolean hasCeiling() -
getMinBuildHeight
public abstract int getMinBuildHeight() -
getMaxBuildHeight
public abstract int getMaxBuildHeight() -
getLogicalHeight
public abstract int getLogicalHeight() -
getBorderMinX
public abstract double getBorderMinX() -
getBorderMinZ
public abstract double getBorderMinZ() -
getBorderMaxX
public abstract double getBorderMaxX() -
getBorderMaxZ
public abstract double getBorderMaxZ() -
getPlayers
-
visibleBlock
public boolean visibleBlock(int blockX, int blockZ) -
visibleChunk
public boolean visibleChunk(int chunkX, int chunkZ) -
visibleRegion
public boolean visibleRegion(int regionX, int regionZ) -
getChunk
-
getRegion
-
unloadRegion
public void unloadRegion(int regionX, int regionZ) -
getRegionFiles
-
getCustomMarkerFiles
-
listRegions
-
equals
-
hashCode
public int hashCode() -
toString
-