Package io.papermc.paper.datapack
Interface DatapackRegistrar.Configurer
- Enclosing interface:
DatapackRegistrar
Configures additional, optional, details about a datapack.
-
Method Summary
Modifier and TypeMethodDescriptionautoEnableOnServerStart
(boolean autoEnableOnServerStart) Sets whether this pack is going to be automatically enabled on server starts even if previously disabled.position
(boolean fixed, Datapack.Position position) Configures the position in the load order of this datapack.Changes the title of the datapack from the default which is just the "id" in theregisterPack
methods.
-
Method Details
-
title
Changes the title of the datapack from the default which is just the "id" in theregisterPack
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/removedposition
- try to insert at the top of the order or bottom- Returns:
- the configurer for chaining
-