Registrar

abstract class Registrar : Namespaced

Provides access to registration functions for things in registries.

Inheritors

Functions

Link copied to clipboard
fun biome(name: String, biome: context(RegistryLookupContext) Biome.BiomeBuilder.() -> Unit): ResourceKey<Biome>

Registers a new Biome under name after configuring a Biome.BiomeBuilder with biome.

Link copied to clipboard
fun biomeInjection(name: String, biomeInjection: context(RegistryLookupContext) BiomeInjectionBuilder.() -> Unit)

Registers a biome injection under name after configuring it with biomeInjection.

Link copied to clipboard
fun block(name: String, block: NovaBlockBuilder.() -> Unit): RegistryEntry.Paper<BlockType>
Link copied to clipboard
fun blockTag(name: String, configure: TagBuilder.Paper<BlockType>.() -> Unit): RegistryEntrySet.Paper.Tag<BlockType>
fun blockTag(tag: RegistryEntrySet.Paper.Tag<BlockType>, configure: TagBuilder.Paper<BlockType>.() -> Unit): RegistryEntrySet.Paper.Tag<BlockType>
Link copied to clipboard
fun catVariant(name: String, catVariant: CatVariantBuilder.() -> Unit): RegistryEntry.Paper<Cat.Type>

Registers a new Cat.Type under name after configuring it with catVariant.

Link copied to clipboard
fun chickenVariant(name: String, chickenVariant: ChickenVariantBuilder.() -> Unit): RegistryEntry.Paper<Chicken.Variant>

Registers a new Chicken.Variant under name after configuring it with chickenVariant.

Link copied to clipboard
fun cowVariant(name: String, cowVariant: CowVariantBuilder.() -> Unit): RegistryEntry.Paper<Cow.Variant>

Registers a new Cow.Variant under name after configuring it with cowVariant.

Link copied to clipboard
fun dimension(name: String, dimension: context(RegistryLookupContext) () -> LevelStem): ResourceKey<LevelStem>

Registers a complete dimension under name using dimension to create its LevelStem.

Link copied to clipboard
fun dimensionType(name: String, dimensionType: context(RegistryLookupContext) () -> DimensionType): ResourceKey<DimensionType>

Registers a new DimensionType under name using dimensionType.

Link copied to clipboard
fun enchantment(name: String, enchantment: EnchantmentBuilder.() -> Unit): RegistryEntry.Paper<Enchantment>
Link copied to clipboard
Link copied to clipboard
fun frogVariant(name: String, frogVariant: FrogVariantBuilder.() -> Unit): RegistryEntry.Paper<Frog.Variant>

Registers a new Frog.Variant under name after configuring it with frogVariant.

Link copied to clipboard
Link copied to clipboard
fun item(name: String, item: NovaItemBuilder.() -> Unit): RegistryEntry.Paper<ItemType>
fun item(block: RegistryEntry.Paper<BlockType>, name: String = block.key.value(), item: NovaItemBuilder.() -> Unit): RegistryEntry.Paper<ItemType>
Link copied to clipboard
fun itemTag(name: String, configure: TagBuilder.Paper<ItemType>.() -> Unit): RegistryEntrySet.Paper.Tag<ItemType>
fun itemTag(tag: RegistryEntrySet.Paper.Tag<ItemType>, configure: TagBuilder.Paper<ItemType>.() -> Unit): RegistryEntrySet.Paper.Tag<ItemType>
Link copied to clipboard
fun materialCondition(name: String, materialCondition: context(RegistryLookupContext) () -> MaterialCondition): ResourceKey<MaterialCondition>

Registers a new MaterialCondition under name using materialCondition.

Link copied to clipboard
fun materialRule(name: String, materialRule: context(RegistryLookupContext) () -> MaterialRule): ResourceKey<MaterialRule>

Registers a new MaterialRule under name using materialRule.

Link copied to clipboard
@KeyPattern.Namespace
abstract fun namespace(): String?
Link copied to clipboard
fun noiseSettings(name: String, noiseSettings: context(RegistryLookupContext) () -> NoiseGeneratorSettings): ResourceKey<NoiseGeneratorSettings>

Registers new NoiseGeneratorSettings under name using noiseSettings.

Link copied to clipboard
fun pigVariant(name: String, pigVariant: PigVariantBuilder.() -> Unit): RegistryEntry.Paper<Pig.Variant>

Registers a new Pig.Variant under name after configuring it with pigVariant.

Link copied to clipboard
fun placedFeature(name: String, placedFeature: context(RegistryLookupContext) () -> PlacedFeature): ResourceKey<PlacedFeature>

Registers a new PlacedFeature under name using placedFeature.

Link copied to clipboard
fun processorList(name: String, processorList: context(RegistryLookupContext) () -> StructureProcessorList): ResourceKey<StructureProcessorList>

Registers a new StructureProcessorList under name using processorList.

Link copied to clipboard
fun <T : Ability> registerAbilityType(name: String, abilityCreator: (Player) -> T): RegistryEntry.Nova<AbilityType<T>>
Link copied to clipboard
fun <T : Attachment> registerAttachmentType(name: String, constructor: (Player) -> T): RegistryEntry.Nova<AttachmentType<T>>
Link copied to clipboard
fun registerCarver(name: String, carver: WorldCarver): ResourceKey<WorldCarver>

Registers carver under name.

Link copied to clipboard
fun registerCarverType(name: String, codec: MapCodec<out WorldCarver>): MapCodec<out WorldCarver>

Registers a new carver type under name using codec.

Link copied to clipboard
fun registerFeature(name: String, feature: Feature): ResourceKey<Feature>

Registers feature under name.

Link copied to clipboard
fun registerFeatureType(name: String, codec: MapCodec<out Feature>): MapCodec<out Feature>

Registers a new feature type under name using codec.

Link copied to clipboard
fun registerItem(name: String, vararg behaviors: ItemBehaviorHolder, localizedName: String? = null, isHidden: Boolean = false): RegistryEntry.Paper<ItemType>
fun registerItem(block: RegistryEntry.Paper<BlockType>, vararg behaviors: ItemBehaviorHolder, localizedName: String? = null, isHidden: Boolean = false): RegistryEntry.Paper<ItemType>
fun registerItem(block: RegistryEntry.Paper<BlockType>, name: String, vararg behaviors: ItemBehaviorHolder, localizedName: String? = null, isHidden: Boolean = false): RegistryEntry.Paper<ItemType>
Link copied to clipboard
fun <T : Network<T>> registerNetworkType(name: String, createNetwork: (NetworkData<T>) -> T, createGroup: (NetworkGroupData<T>) -> NetworkGroup<T>, validateLocal: LocalNetworkValidator, extractHolders: (NetworkEndPoint) -> List<EndPointDataHolder>?, tickDelay: Int): RegistryEntry.Nova<NetworkType<T>>
Link copied to clipboard
fun registerNoise(name: String, noise: NormalNoise): NormalNoise

Registers noise under name.

Link copied to clipboard
fun <P : PlacementModifier> registerPlacementModifierType(name: String, codec: MapCodec<P>): MapCodec<P>

Registers a new placement modifier type under name using codec.

Link copied to clipboard
fun <T : NovaRecipe> registerRecipeType(name: String, recipeClass: KClass<T>, group: RecipeGroup<in T>, deserializer: RecipeDeserializer<T>?): RegistryEntry.Nova<RecipeType<T>>
Link copied to clipboard
fun <T : RuleTest> registerRuleTestType(name: String, ruleTestType: RuleTestType<T>): RuleTestType<T>

Registers ruleTestType under name.

Link copied to clipboard
fun registerStructurePieceType(name: String, structurePieceType: StructurePieceType): StructurePieceType

Registers structurePieceType under name.

Link copied to clipboard
fun <SP : StructurePlacement> registerStructurePlacementType(name: String, codec: MapCodec<out SP>): MapCodec<out SP>

Registers a new structure placement type under name using codec.

Link copied to clipboard
fun <P : StructurePoolElement> registerStructurePoolElementType(name: String, structurePoolElementType: StructurePoolElementType<P>): StructurePoolElementType<P>
Link copied to clipboard
fun <P : StructureProcessor> registerStructureProcessorType(name: String, structureProcessorType: MapCodec<out P>): MapCodec<out P>

Registers a new structure processor type under name using structureProcessorType.

Link copied to clipboard
fun <S : Structure> registerStructureType(name: String, structureType: StructureType<S>): StructureType<S>

Registers structureType under name.

Link copied to clipboard
fun <T : NovaRegistryElement<T>> registry(name: String, reloadable: Boolean = NovaRegistries.RELOADABLE, unknownEntryFactory: (RegistryEntry.Nova<T>) -> T? = null): MutableNovaRegistry<T>

Creates a reloadable Nova registry named name that uses unknownEntryFactory to create values for keys from previous runs or reloads.

Link copied to clipboard
fun structure(name: String, structure: context(RegistryLookupContext) () -> Structure): ResourceKey<Structure>

Registers a new Structure under name using structure.

Link copied to clipboard
fun structureSet(name: String, structureSet: context(RegistryLookupContext) () -> StructureSet): ResourceKey<StructureSet>

Registers a new StructureSet under name using structureSet.

Link copied to clipboard
fun <T : Keyed> tag(name: String, registry: RegistryKey<T>, configure: TagBuilder.Paper<T>.() -> Unit): RegistryEntrySet.Paper.Tag<T>
Link copied to clipboard
fun templatePool(name: String, templatePool: context(RegistryLookupContext) () -> StructureTemplatePool): ResourceKey<StructureTemplatePool>

Registers a new StructureTemplatePool under name using templatePool.

Link copied to clipboard
fun tileEntity(name: String, constructor: TileEntityConstructor, tileEntity: NovaTileEntityBlockBuilder.() -> Unit): RegistryEntry.Paper<BlockType>
Link copied to clipboard

Registers a new TooltipStyle with the specified name and meta.

Link copied to clipboard
fun <S : BlockData> wailaInfoProvider(name: String, wailaInfoProvider: WailaInfoProviderBuilder<S>.() -> Unit): RegistryEntry.Nova<WailaInfoProvider<S>>

Registers a new WailaInfoProvider for vanilla blocks with the specified name after configuring it with wailaInfoProvider.

Link copied to clipboard

Registers a new WailaToolIconProvider with the specified name after configuring it with wailaToolIconProvider.

Link copied to clipboard
fun wolfSoundVariant(name: String, wolfSoundVariant: WolfSoundVariantBuilder.() -> Unit): RegistryEntry.Paper<Wolf.SoundVariant>

Registers a new Wolf.SoundVariant under name after configuring it with wolfSoundVariant.

Link copied to clipboard
fun wolfVariant(name: String, wolfVariant: WolfVariantBuilder.() -> Unit): RegistryEntry.Paper<Wolf.Variant>

Registers a new Wolf.Variant under name after configuring it with wolfVariant.