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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PathMatcher
static final PathMatcher
static final PathMatcher
-
Constructor Summary
ConstructorDescriptionWorld
(@NotNull String name, long seed, @NotNull Point spawn, @NotNull World.Type type, @NotNull Path regionDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
boolean
@NotNull BiomeManager
@NotNull BiomeRegistry
abstract double
abstract double
abstract double
abstract double
@NotNull Chunk
@NotNull WorldConfig
@NotNull Collection
<@NotNull Path> @NotNull Path
abstract <T> T
getLevel()
@NotNull UpdateLiveData
abstract int
@NotNull Path
@NotNull UpdateMarkerData
abstract int
abstract int
@NotNull String
getName()
abstract @NotNull Collection
<@NotNull Player> @NotNull Region
@NotNull Path
@NotNull Collection
<@NotNull Path> @NotNull RegionModifiedState
@NotNull Map
<@NotNull String, @NotNull Renderer.Builder> long
getSeed()
int
@NotNull Point
getSpawn()
@NotNull Path
@NotNull World.Type
getType()
Get the world's type.abstract boolean
int
hashCode()
abstract long
hashSeed
(long seed) protected void
init()
boolean
Get whether this world is enabled.@NotNull Collection
<@NotNull Point> listRegions
(boolean ignoreTimestamp) abstract @NotNull String
toString()
void
unloadRegion
(int regionX, int regionZ) boolean
visibleBlock
(int blockX, int blockZ) boolean
visibleChunk
(int chunkX, int chunkZ) boolean
visibleRegion
(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
-
getLiveDataTask
-
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
-
getServerSentEventHandler
-
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
-