Interface DatapackRegistrar.Configurer

Enclosing interface:
DatapackRegistrar

@NonExtendable @Experimental public static interface DatapackRegistrar.Configurer
Configures additional, optional, details about a datapack.
  • Method Details

    • title

      @Contract(value="_ -> this", mutates="this") DatapackRegistrar.Configurer title(Component title)
      Changes the title of the datapack from the default which is just the "id" in the registerPack methods.
      Parameters:
      title - the new title
      Returns:
      the configurer for chaining
    • autoEnableOnServerStart

      @Contract(value="_ -> this", mutates="this") DatapackRegistrar.Configurer autoEnableOnServerStart(boolean autoEnableOnServerStart)
      Sets whether this pack is going to be automatically enabled on server starts even if previously disabled. Defaults to false.
      Parameters:
      autoEnableOnServerStart - true to ensure the pack is enabled on server starts.
      Returns:
      the configurer for chaining
    • position

      @Contract(value="_, _ -> this", mutates="this") DatapackRegistrar.Configurer position(boolean fixed, Datapack.Position position)
      Configures the position in the load order of this datapack.
      Parameters:
      fixed - won't move around in the load order as packs are added/removed
      position - try to insert at the top of the order or bottom
      Returns:
      the configurer for chaining