Skip to content

commonnet.kernelpanicsoft.archie.util

Package-level declarations

Types

MutableEntry


data class MutableEntry<K, V>(var key: K, var value: V) : Map.Entry<K, V> 

Functions

blockEntityType


fun <T : BlockEntity> blockEntityType(factory: BlockEntityType.BlockEntitySupplier<T>, builder: MutableList<Block>.() -> Unit): BlockEntityType<T>

blockProperties


fun blockProperties(parent: BlockBehaviour? = null, block: BlockBehaviour.Properties.() -> Unit): BlockBehaviour.Properties

build


fun <T : BlockEntity> BlockEntityType.Builder<T>.build(): BlockEntityType<T>

buildArray


inline fun <T> buildArray(builderAction: MutableList<T>.() -> Unit): Array<T>

inline fun <T> buildArray(capacity: Int, builderAction: MutableList<T>.() -> Unit): Array<T>

getReflection


inline fun <T, R> getReflection(instance: T, field: String): R

getReflection


@JvmName(name = "getReflectionExtension")inline fun <T, R> T.getReflection(field: String): R

itemProperties


fun itemProperties(block: Item.Properties.() -> Unit): Item.Properties

setReflection


inline fun <T, R> setReflection(instance: T, field: String, value: R)

setReflection


@JvmName(name = "setReflectionExtension")inline fun <T, R> T.setReflection(field: String, value: R)

tab


fun Item.Properties.tab(tab: DeferredSupplier<CreativeModeTab>): Item.Properties

fun Item.Properties.tab(tab: ResourceKey<CreativeModeTab>): Item.Properties

fun Item.Properties.tab(tab: CreativeModeTab): Item.Properties

toMutableEntry