Class ContributionRegistry
java.lang.Object
com.ultikits.ultitools.bootstrap.ContributionRegistry
This start's sealed declarations, in module JAR order.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModuleJarAdmissionprivate final AtomicBooleanprivate booleanprivate final Loggerprivate final List<ModuleContributions> private List<EmbeddedDatapacks.PreparedPack> private final Set<ContentEntry> private final List<ModuleContributions.WorldgenRefusal> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaccept(ModuleContributions module) private voidapplyModuleTags(ModuleContributions module, io.papermc.paper.registry.RegistryKey<?> registry, TagWriter writer) (package private) void(package private) voidprivate voidcallbackFailure(ModuleContributions module, String kind, String key, Throwable failure) (package private) voidcomposeEnchantments(WritableRegistryView writer, ComposeTags tags) private voidcomposeModule(ModuleContributions module, WritableRegistryView writer, ComposeTags tags) (package private) voiddiscoverDatapacks(PackSink sink) (package private) boolean(package private) voidfailPreparation(ModuleContributions module, String kind, String key, Throwable failure) (package private) boolean(package private) booleanprivate booleanmarkFailed(Path jar, Throwable failure) (package private) List<ModuleContributions> modules()(package private) voidpreparedPacks(List<EmbeddedDatapacks.PreparedPack> prepared) (package private) voidrecordWithoutHook(String module) (package private) void(package private) List<io.papermc.paper.registry.RegistryKey<?>> (package private) List<ModuleContributions.WorldgenRefusal>
-
Field Details
-
admission
-
logger
-
modules
-
reserved
-
withoutHooks
-
worldgenRefusals
-
failures
-
composed
-
packs
-
enabling
private volatile boolean enabling
-
-
Constructor Details
-
ContributionRegistry
ContributionRegistry(ModuleJarAdmission admission, Logger logger)
-
-
Method Details
-
accept
-
modules
List<ModuleContributions> modules() -
recordWithoutHook
-
withoutHooks
-
recordWorldgenRefusal
-
worldgenRefusals
List<ModuleContributions.WorldgenRefusal> worldgenRefusals() -
failed
-
beginEnable
void beginEnable() -
preparedPacks
-
hasDatapacks
boolean hasDatapacks() -
hasEnchantments
boolean hasEnchantments() -
tagRegistries
List<io.papermc.paper.registry.RegistryKey<?>> tagRegistries() -
composeEnchantments
-
composeModule
private void composeModule(ModuleContributions module, WritableRegistryView writer, ComposeTags tags) -
applyTags
-
applyModuleTags
private void applyModuleTags(ModuleContributions module, io.papermc.paper.registry.RegistryKey<?> registry, TagWriter writer) -
discoverDatapacks
-
failPreparation
-
callbackFailure
private void callbackFailure(ModuleContributions module, String kind, String key, Throwable failure) -
markFailed
-