Class World

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

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

    • 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

      @NotNull public @NotNull Path getCustomMarkersDirectory()
    • getMarkersDirectory

      @NotNull public @NotNull Path getMarkersDirectory()
    • getRegionDirectory

      @NotNull public @NotNull Path getRegionDirectory()
    • getTilesDirectory

      @NotNull public @NotNull Path getTilesDirectory()
    • getConfig

      @NotNull public @NotNull WorldConfig getConfig()
    • getRegionModifiedState

      @NotNull public @NotNull RegionModifiedState getRegionModifiedState()
    • getMarkerTask

      @NotNull public @NotNull UpdateMarkerData getMarkerTask()
    • getLiveDataTask

      @NotNull public @NotNull UpdateLiveData getLiveDataTask()
    • getRenderers

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

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

      @NotNull public @NotNull String getName()
    • getSeed

      public long getSeed()
    • getSpawn

      @NotNull public @NotNull Point getSpawn()
    • getSkylight

      public int getSkylight()
    • getType

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

      public LiveDataHandler getServerSentEventHandler()
    • getBiomeManager

      @NotNull public @NotNull BiomeManager getBiomeManager()
    • getBiomeRegistry

      @NotNull public @NotNull BiomeRegistry getBiomeRegistry()
    • getLayerRegistry

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

      @NotNull public abstract @NotNull Collection<@NotNull 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

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

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

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

      @NotNull public @NotNull Collection<@NotNull Path> getRegionFiles()
    • getCustomMarkerFiles

      @NotNull public @NotNull Collection<@NotNull Path> getCustomMarkerFiles()
    • listRegions

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

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

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

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