Class WorldLayer

All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
CustomLayer, PlayersLayer, SpawnLayer, WorldBorderLayer

@NullMarked public abstract class WorldLayer extends SimpleLayer
Represents a layer for worlds.
  • Constructor Details

    • WorldLayer

      public WorldLayer(String key, World world, Supplier<String> labelSupplier)
      Create a new spawn layer.
      Parameters:
      key - key for layer
      world - world
      labelSupplier - label
  • Method Details

    • getWorld

      public World getWorld()
    • getOptions

      public @Nullable Options getOptions()
    • setOptions

      public WorldLayer setOptions(@Nullable Options options)