Class AnvilProviderFactory

java.lang.Object
org.cloudburstmc.server.level.provider.anvil.AnvilProviderFactory
All Implemented Interfaces:
LevelProviderFactory

public class AnvilProviderFactory extends Object implements LevelProviderFactory
  • Field Details

  • Constructor Details

    • AnvilProviderFactory

      public AnvilProviderFactory()
  • Method Details

    • create

      public LevelProvider create(String levelId, Path levelsPath, Executor executor) throws IOException
      Description copied from interface: LevelProviderFactory
      Creates new provider
      Specified by:
      create in interface LevelProviderFactory
      Parameters:
      levelId - level ID
      levelsPath - path of the levels directory (NOT THE LEVEL DIRECTORY ITSELF)
      executor - executor to run tasks async
      Returns:
      chunk provider
      Throws:
      IOException - error created provider
    • isCompatible

      public boolean isCompatible(String levelId, Path levelsPath)
      Description copied from interface: LevelProviderFactory
      Checks if level provider is compatible with directory given
      Specified by:
      isCompatible in interface LevelProviderFactory
      Parameters:
      levelId - level ID
      levelsPath - path of the levels directory (NOT THE LEVEL DIRECTORY ITSELF)
      Returns:
      true if level is compatible.