Addon

abstract class Addon : AddonGetter

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
override val addon: Addon
Link copied to clipboard
lateinit var dataFolder: Path

The Path of the data folder of this addon.

Link copied to clipboard
lateinit var file: Path

The Path of the file of this addon.

Link copied to clipboard
lateinit var logger: ComponentLogger

The ComponentLogger of this addon.

Link copied to clipboard
var plugin: JavaPlugin?

The JavaPlugin instance of this addon, null during bootstrap phase.

Link copied to clipboard
lateinit var pluginMeta: PluginMeta

The PluginMeta of this addon.

Link copied to clipboard

A list of ProjectDistributors that distribute this addon and should be checked for updates.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun biome(name: String, biome: BiomeBuilder.() -> Unit): ResourceKey<Biome>
Link copied to clipboard
fun biomeInjection(name: String, biomeInjection: BiomeInjectionBuilder.() -> Unit)
Link copied to clipboard
fun block(name: String, block: NovaBlockBuilder.() -> Unit): NovaBlock
Link copied to clipboard
fun catVariant(name: String, catVariant: CatVariantBuilder.() -> Unit): Provider<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): Provider<Chicken.Variant>

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

Link copied to clipboard
fun <F : ConfiguredFeature<*, *>> configuredFeature(name: String, configuredFeature: F): ResourceKey<ConfiguredFeature<*, *>>
fun <FC : FeatureConfiguration, F : Feature<FC>> configuredFeature(name: String, feature: F, config: FC): ResourceKey<ConfiguredFeature<*, *>>
Link copied to clipboard
fun cowVariant(name: String, cowVariant: CowVariantBuilder.() -> Unit): Provider<Cow.Variant>

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

Link copied to clipboard
fun dimensionType(name: String, dimensionType: DimensionTypeBuilder.() -> Unit): ResourceKey<DimensionType>
Link copied to clipboard
fun enchantment(name: String, enchantment: EnchantmentBuilder.() -> Unit): Provider<Enchantment>
Link copied to clipboard
Link copied to clipboard
fun feature(name: String, feature: Feature<*>): ResourceKey<Feature<*>>
Link copied to clipboard
fun frogVariant(name: String, cowVariant: FrogVariantBuilder.() -> Unit): Provider<Frog.Variant>

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

Link copied to clipboard
Link copied to clipboard
fun item(name: String, item: NovaItemBuilder.() -> Unit): NovaItem
fun item(block: NovaBlock, name: String = block.id.value(), item: NovaItemBuilder.() -> Unit): NovaItem
Link copied to clipboard
fun pigVariant(name: String, cowVariant: PigVariantBuilder.() -> Unit): Provider<Pig.Variant>

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

Link copied to clipboard
fun placedFeature(name: String, placedFeature: PlacedFeatureBuilder.() -> Unit): ResourceKey<PlacedFeature>
Link copied to clipboard
fun <P : PlacementModifier> placementModifierType(name: String, codec: MapCodec<P>): PlacementModifierType<P>
fun <P : PlacementModifier> placementModifierType(name: String, placementModifierType: PlacementModifierType<P>): PlacementModifierType<P>
Link copied to clipboard
fun <T : Ability> registerAbilityType(name: String, abilityCreator: (Player) -> T): AbilityType<T>
Link copied to clipboard
fun <T : Attachment> registerAttachmentType(name: String, constructor: (Player) -> T): AttachmentType<T>
Link copied to clipboard
fun <CC : CarverConfiguration> registerCarver(name: String, carver: WorldCarver<CC>): WorldCarver<CC>
Link copied to clipboard
fun <CC : CarverConfiguration> registerConfiguredCarver(name: String, configuredCarver: ConfiguredWorldCarver<CC>): ConfiguredWorldCarver<CC>
Link copied to clipboard
fun registerItem(name: String, vararg behaviors: ItemBehaviorHolder, localizedName: String? = null, isHidden: Boolean = false): NovaItem
fun registerItem(block: NovaBlock, vararg behaviors: ItemBehaviorHolder, localizedName: String? = null, isHidden: Boolean = false): NovaItem
fun registerItem(block: NovaBlock, name: String, vararg behaviors: ItemBehaviorHolder, localizedName: String? = null, isHidden: Boolean = false): NovaItem
Link copied to clipboard
fun registerItemFilterType(name: String, itemFilterType: ItemFilterType<*>)
Link copied to clipboard
fun <T : Network<T>> registerNetworkType(name: String, createNetwork: NetworkConstructor<T>, createGroup: NetworkGroupConstructor<T>, validateLocal: LocalValidator, tickDelay: Provider<Int>, vararg holderTypes: KClass<out EndPointDataHolder>): NetworkType<T>
Link copied to clipboard
fun registerNoiseGenerationSettings(name: String, settings: NoiseGeneratorSettings): NoiseGeneratorSettings
Link copied to clipboard
fun registerNoiseParameters(name: String, noiseParams: NormalNoise.NoiseParameters): NormalNoise.NoiseParameters
fun registerNoiseParameters(name: String, firstOctave: Int, amplitudes: DoubleList): NormalNoise.NoiseParameters
fun registerNoiseParameters(name: String, firstOctave: Int, vararg amplitudes: Double): NormalNoise.NoiseParameters
fun registerNoiseParameters(name: String, firstOctave: Int, amplitudes: List<Double>): NormalNoise.NoiseParameters
Link copied to clipboard
fun <T : NovaRecipe> registerRecipeType(name: String, recipeClass: KClass<T>, group: RecipeGroup<in T>, deserializer: RecipeDeserializer<T>?): RecipeType<T>
Link copied to clipboard
fun <T : RuleTest> registerRuleTestType(name: String, codec: MapCodec<T>): RuleTestType<T>
fun <T : RuleTest> registerRuleTestType(name: String, ruleTestType: RuleTestType<T>): RuleTestType<T>
Link copied to clipboard
fun registerStructure(name: String, structure: Structure): Structure
Link copied to clipboard
fun registerStructurePieceType(name: String, structurePieceType: StructurePieceType): StructurePieceType
Link copied to clipboard
fun <SP : StructurePlacement> registerStructurePlacementType(name: String, structurePlacementType: StructurePlacementType<SP>): StructurePlacementType<SP>
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: StructureProcessorType<P>): StructureProcessorType<P>
Link copied to clipboard
fun registerStructureSet(name: String, structureSet: StructureSet): StructureSet
Link copied to clipboard
fun <S : Structure> registerStructureType(name: String, structureType: StructureType<S>): StructureType<S>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Registers a new TooltipStyle with the specified name and meta.

Link copied to clipboard
fun wolfSoundVariant(name: String, wolfSoundVariant: WolfSoundVariantBuilder.() -> Unit): Provider<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): Provider<Wolf.Variant>

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