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 PathMatcher
static final PathMatcher
static final PathMatcher
-
Constructor Summary
ConstructorsConstructorDescriptionWorld
(String name, long seed, Point spawn, World.Type type, Path regionDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
boolean
abstract double
abstract double
abstract double
abstract double
abstract <T> T
getLevel()
abstract int
abstract int
abstract int
getName()
abstract Collection
<Player> long
getSeed()
int
getSpawn()
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.listRegions
(boolean ignoreTimestamp) abstract 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
-
-
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
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
-