FeatureType

abstract class FeatureType<FC : FeatureConfiguration>(codec: Codec<FC>) : Feature<FC>

An extension class of Minecraft's Feature that allows to use Bukkit's Material and NovaBlocks via protected setBlock functions.

Constructors

Link copied to clipboard
constructor(codec: Codec<FC>)

Functions

Link copied to clipboard
open fun configuredCodec(): MapCodec<ConfiguredFeature<FC, Feature<FC>>>
Link copied to clipboard
abstract override fun place(ctx: FeaturePlaceContext<FC>): Boolean
open override fun place(config: FC, level: WorldGenLevel, generator: ChunkGenerator, random: RandomSource, pos: BlockPos): Boolean