Class World

java.lang.Object
net.pl3x.map.core.Keyed
net.pl3x.map.core.world.World

@NullMarked public abstract class World extends Keyed
  • Field Details

    • JSON_MATCHER

      public static final PathMatcher JSON_MATCHER
    • MCA_MATCHER

      public static final PathMatcher MCA_MATCHER
    • PNG_MATCHER

      public static final PathMatcher PNG_MATCHER
  • Constructor Details

  • Method Details

    • init

      protected void init()
    • cleanup

      public void cleanup()
    • getCustomMarkersDirectory

      public Path getCustomMarkersDirectory()
    • getMarkersDirectory

      public Path getMarkersDirectory()
    • getRegionDirectory

      public Path getRegionDirectory()
    • getTilesDirectory

      public Path getTilesDirectory()
    • getConfig

      public WorldConfig getConfig()
    • getRegionModifiedState

      public RegionModifiedState getRegionModifiedState()
    • getMarkerTask

      public UpdateMarkerData getMarkerTask()
    • getLiveDataTask

      public UpdateLiveData getLiveDataTask()
    • getRenderers

      public Map<String,Renderer.Builder> getRenderers()
    • isEnabled

      public boolean isEnabled()
      Get whether this world is enabled.
      Returns:
      true if enabled
    • getName

      public String getName()
    • getSeed

      public long getSeed()
    • getSpawn

      public Point getSpawn()
    • getSkylight

      public int getSkylight()
    • getType

      public World.Type getType()
      Get the world's type.
      Returns:
      world type
    • getServerSentEventHandler

      public LiveDataHandler getServerSentEventHandler()
    • getBiomeManager

      public BiomeManager getBiomeManager()
    • getBiomeRegistry

      public BiomeRegistry getBiomeRegistry()
    • getLayerRegistry

      public Registry<Layer> 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

      public abstract Collection<Player> 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

      public Chunk getChunk(@Nullable Region region, int chunkX, int chunkZ)
    • getRegion

      public Region getRegion(@Nullable Region region, int regionX, int regionZ)
    • unloadRegion

      public void unloadRegion(int regionX, int regionZ)
    • getRegionFiles

      public Collection<Path> getRegionFiles()
    • getCustomMarkerFiles

      public Collection<Path> getCustomMarkerFiles()
    • listRegions

      public Collection<Point> listRegions(boolean ignoreTimestamp)
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Keyed
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Keyed
    • toString

      public abstract String toString()
      Overrides:
      toString in class Keyed