Interface BootstrapDimensionRegistry


@NullMarked @AsOf("3.0.0") @Experimental public interface BootstrapDimensionRegistry
Registers custom dimension types during the Paper bootstrap/registry-load phase, so they enter the dimension-type registry before it freezes.
Since:
3.0.0
  • Field Details

  • Method Details

    • compose

      @AsOf("3.0.0") static BootstrapDimensionRegistry compose(BootstrapContext context, Composer type)
      Composes a new datapack-backed BootstrapDimensionRegistry and installs it into the context.
      Parameters:
      context - the bootstrap context
      Returns:
      a new, installed BootstrapDimensionRegistry instance
      Since:
      3.0.0
    • datapack

      @AsOf("3.0.0") static BootstrapDimensionRegistry datapack()
      Creates a new DatapackBootstrapDimensionRegistry instance.
      Returns:
      a new instance of DatapackBootstrapDimensionRegistry
      Since:
      3.0.0
    • unsafe

      @AsOf("3.0.0") static BootstrapDimensionRegistry unsafe()
      Creates a new UnsafePaperBootstrapDimensionRegistry instance.
      Returns:
      a new instance of UnsafePaperBootstrapDimensionRegistry
      Since:
      3.0.0
    • install

      Installs the registry into the given context.
      Parameters:
      context - the context to install the registry into
      Returns:
      this registry instance
      Since:
      3.0.0
    • queue

      @AsOf("3.0.0") BootstrapDimensionRegistry queue(Dimension dimension)
      Queues a dimension type to be registered.
      Parameters:
      dimension - the dimension type to register
      Returns:
      this registry instance
      Since:
      3.0.0
    • deferring

      @AsOf("3.0.0") BootstrapDimensionRegistry deferring(ThrowingRunnable runnable)
      Defers the execution of a runnable until the registry is installed.
      Parameters:
      runnable - the runnable to defer
      Returns:
      this registry instance
      Since:
      3.0.0