Package-level declarations

Functions

Link copied to clipboard
fun createSimpleBlock(properties: BlockBehaviour.Properties = BlockBehaviour.Properties.of()): Block

Utility factory for quickly creating a simple custom block.

Link copied to clipboard
fun createSimpleEffect(category: MobEffectCategory, color: Int): MobEffect

Utility factory for quickly creating a simple custom MobEffect.

Link copied to clipboard
@ApiStatus.Experimental
fun registerNativeBlock(id: String, registerMode: RegisterMode = RegisterMode.AUTO, blockFactory: (BlockBehaviour.Properties) -> Block): KattonRegistry.KattonBlockEntry
@ApiStatus.Experimental
fun registerNativeBlock(id: Identifier, registerMode: RegisterMode = RegisterMode.AUTO, blockFactory: (BlockBehaviour.Properties) -> Block): KattonRegistry.KattonBlockEntry

Registers a native Block with hot-reload support.

Link copied to clipboard
fun registerNativeEffect(id: String, registerMode: RegisterMode = RegisterMode.AUTO, effectFactory: () -> MobEffect): KattonRegistry.KattonMobEffectEntry
fun registerNativeEffect(id: Identifier, registerMode: RegisterMode = RegisterMode.AUTO, effectFactory: () -> MobEffect): KattonRegistry.KattonMobEffectEntry

Registers a native MobEffect with hot-reload support.

Link copied to clipboard
@ApiStatus.Experimental
fun registerNativeItem(id: String, properties: KattonItemProperties, registerMode: RegisterMode = RegisterMode.AUTO, itemFactory: (KattonItemProperties) -> Item): KattonRegistry.KattonItemEntry

Registers a native Item with pre-configured properties.

@ApiStatus.Experimental
fun registerNativeItem(id: String, registerMode: RegisterMode = RegisterMode.AUTO, configure: KattonItemProperties.() -> Unit = {}, itemFactory: (KattonItemProperties) -> Item): KattonRegistry.KattonItemEntry
@ApiStatus.Experimental
fun registerNativeItem(id: Identifier, registerMode: RegisterMode = RegisterMode.AUTO, configure: KattonItemProperties.() -> Unit = {}, itemFactory: (KattonItemProperties) -> Item): KattonRegistry.KattonItemEntry

Registers a native Item with hot-reload support.