Package org.quiltmc.qkl.wrapper.qsl.registry

Functions

Link copied to clipboard
fun <R> buildBooleanRegistryEntryAttachment(    registry: Registry<R>,     id: Identifier,     block: RegistryEntryAttachment.Builder<R, Boolean>.() -> Unit = {}): RegistryEntryAttachment<R, Boolean>

Create a new boolean RegistryEntryAttachment for the given registry with the given information.

Link copied to clipboard
fun <R> buildDoubleRegistryEntryAttachment(    registry: Registry<R>,     id: Identifier,     block: RegistryEntryAttachment.Builder<R, Double>.() -> Unit = {}): RegistryEntryAttachment<R, Double>

Create a new double RegistryEntryAttachment for the given registry with the given information.

Link copied to clipboard
fun <R> buildFloatRegistryEntryAttachment(    registry: Registry<R>,     id: Identifier,     block: RegistryEntryAttachment.Builder<R, Float>.() -> Unit = {}): RegistryEntryAttachment<R, Float>

Create a new float RegistryEntryAttachment for the given registry with the given information.

Link copied to clipboard
fun <R> buildIntRegistryEntryAttachment(    registry: Registry<R>,     id: Identifier,     block: RegistryEntryAttachment.Builder<R, Int>.() -> Unit = {}): RegistryEntryAttachment<R, Int>

Create a new int RegistryEntryAttachment for the given registry with the given information.

Link copied to clipboard
fun <R> buildLongRegistryEntryAttachment(    registry: Registry<R>,     id: Identifier,     block: RegistryEntryAttachment.Builder<R, Long>.() -> Unit = {}): RegistryEntryAttachment<R, Long>

Create a new long RegistryEntryAttachment for the given registry with the given information.

Link copied to clipboard
fun <R, V : Any> buildRegistryEntryAttachment(    registry: Registry<R>,     id: Identifier,     valueClass: KClass<V>,     codec: Codec<V>,     block: RegistryEntryAttachment.Builder<R, V>.() -> Unit = {}): RegistryEntryAttachment<R, V>

Create a new RegistryEntryAttachment for the given registry with the given information. Shorthands are available for primitive types and Strings.

Link copied to clipboard
fun <R> buildStringRegistryEntryAttachment(    registry: Registry<R>,     id: Identifier,     block: RegistryEntryAttachment.Builder<R, String>.() -> Unit = {}): RegistryEntryAttachment<R, String>

Create a new String RegistryEntryAttachment for the given registry with the given information.

Link copied to clipboard
fun <V> EventRegistration.onRegistryEntryAdded(registry: Registry<V>, callback: (RegistryEntryContext<V>) -> Unit)

Get a callback when a given registry gets a new entry.

Link copied to clipboard
fun <V> Registry<in V>.register(    id: Identifier,     value: V,     block: RegistryExtensions.BuiltinAttachmentBuilder<in V>.() -> Unit)

Register a value with the given id in this registry.