InstantBindMappedRegistry

open class InstantBindMappedRegistry<T : Any>(resourceKey: ResourceKey<out Registry<T>>, lifecycle: Lifecycle) : MappedRegistry<T>

MappedRegistry implementation that binds the value to the Holder.Reference immediately after registering it instead of waiting for freeze to be called.

Inheritors

Constructors

Link copied to clipboard
constructor(resourceKey: ResourceKey<out Registry<T>>, lifecycle: Lifecycle)

Functions

Link copied to clipboard
open fun asHolderIdMap(): IdMap<Holder<T>>
Link copied to clipboard
open override fun asLookup(): HolderLookup.RegistryLookup<T>
Link copied to clipboard
open fun asTagAddingLookup(): HolderLookup.RegistryLookup<T>
Link copied to clipboard
open override fun bindTags(p0: MutableMap<TagKey<T>, MutableList<Holder<T>>>)
Link copied to clipboard
open override fun byId(p0: Int): T?
Link copied to clipboard
open fun byIdOrThrow(index: Int): T
Link copied to clipboard
fun <T : Any> Registry<T>.byNameBinaryAdapter(): BinaryAdapter<T>
Link copied to clipboard
open fun byNameCodec(): Codec<T>
Link copied to clipboard
inline fun <T : Any> Registry<T>.byNameTypeSerializer(): TypeSerializer<T>
Link copied to clipboard
open fun clearIntrusiveHolder(p0: T)
Link copied to clipboard
operator fun Registry<*>.contains(key: String): Boolean
Link copied to clipboard
open override fun containsKey(p0: ResourceKey<T>): Boolean
open override fun containsKey(p0: ResourceLocation): Boolean
Link copied to clipboard
open override fun createIntrusiveHolder(p0: T): Holder.Reference<T>
Link copied to clipboard
open override fun createRegistrationLookup(): HolderGetter<T>
Link copied to clipboard
open override fun entrySet(): MutableSet<MutableMap.MutableEntry<ResourceKey<T>, T>>
Link copied to clipboard
fun Iterable<Player>.filterInRange(location: Location, maxDistance: Double): List<Player>
Link copied to clipboard
open fun forEach(p0: Consumer<in T>)
Link copied to clipboard
open override fun freeze(): Registry<T>
Link copied to clipboard
open operator override fun get(@Nullable p0: ResourceKey<T>?): T?
open operator override fun get(@Nullable p0: ResourceLocation?): T?
Link copied to clipboard
operator fun <T> Registry<T>.get(key: String): T?
Link copied to clipboard
open override fun getAny(): Optional<Holder.Reference<T>>
Link copied to clipboard
open override fun getHolder(p0: Int): Optional<Holder.Reference<T>>
open override fun getHolder(p0: ResourceKey<T>): Optional<Holder.Reference<T>>
open override fun getHolder(p0: ResourceLocation): Optional<Holder.Reference<T>>
Link copied to clipboard
fun <T> Registry<T>.getHolder(id: ResourceLocation): Holder<T>?
Link copied to clipboard
open fun getHolderOrThrow(key: ResourceKey<T>): Holder.Reference<T>
Link copied to clipboard
fun <T> Registry<T>.getHolderOrThrow(id: ResourceLocation): Holder<T>
Link copied to clipboard
open override fun getId(@Nullable p0: T?): Int
Link copied to clipboard
open fun getIdOrThrow(value: T): Int
Link copied to clipboard
open override fun getKey(p0: T): ResourceLocation?
Link copied to clipboard
open fun getOptional(@Nullable key: ResourceKey<T>?): Optional<T>
open fun getOptional(@Nullable id: ResourceLocation?): Optional<T>
Link copied to clipboard
fun <T> Registry<T>.getOrCreateHolder(id: ResourceLocation): Holder<T>
Link copied to clipboard
open override fun getOrCreateTag(p0: TagKey<T>): HolderSet.Named<T>
Link copied to clipboard
open fun getOrThrow(key: ResourceKey<T>): T
Link copied to clipboard
fun <T> Registry<T>.getOrThrow(key: String): T
fun <T> Registry<T>.getOrThrow(id: ResourceLocation): T
Link copied to clipboard
open override fun getRandom(p0: RandomSource): Optional<Holder.Reference<T>>
Link copied to clipboard
open fun getRandomElementOf(tag: TagKey<T>, random: RandomSource): Optional<Holder<T>>
Link copied to clipboard
open override fun getResourceKey(p0: T): Optional<ResourceKey<T>>
Link copied to clipboard
open override fun getTag(p0: TagKey<T>): Optional<HolderSet.Named<T>>
Link copied to clipboard
open override fun getTagNames(): Stream<TagKey<T>>
Link copied to clipboard
open fun getTagOrEmpty(tag: TagKey<T>): MutableIterable<Holder<T>>
Link copied to clipboard
open override fun getTags(): Stream<Pair<TagKey<T>, HolderSet.Named<T>>>
Link copied to clipboard
open fun holderByNameCodec(): Codec<Holder<T>>
Link copied to clipboard
open override fun holderOwner(): HolderOwner<T>
Link copied to clipboard
open override fun holders(): Stream<Holder.Reference<T>>
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<T>
Link copied to clipboard
open override fun key(): ResourceKey<out Registry<T>>
Link copied to clipboard
open override fun <U : Any> keys(dynamicOps: DynamicOps<U>): Stream<U>
Link copied to clipboard
open override fun keySet(): MutableSet<ResourceLocation>
Link copied to clipboard
open override fun register(key: ResourceKey<T>, value: T, info: RegistrationInfo): Holder.Reference<T>
Link copied to clipboard
fun <T : Any> WritableRegistry<T>.register(id: ResourceLocation, value: T): Holder.Reference<T>
Link copied to clipboard
open override fun registrationInfo(p0: ResourceKey<T>): Optional<RegistrationInfo>
Link copied to clipboard
open override fun registryKeySet(): MutableSet<ResourceKey<T>>
Link copied to clipboard
open override fun registryLifecycle(): Lifecycle
Link copied to clipboard
open override fun resetTags()
Link copied to clipboard
operator fun <T : Any> WritableRegistry<T>.set(name: String, value: T)
operator fun <T : Any> WritableRegistry<T>.set(id: ResourceLocation, value: T)
operator fun <T : Any> WritableRegistry<T>.set(addon: Addon, key: String, value: T)
Link copied to clipboard
open override fun size(): Int
Link copied to clipboard
Link copied to clipboard
open fun stream(): Stream<T>
Link copied to clipboard
fun <T> Registry<T>.toHolderMap(): Map<ResourceLocation, Holder<T>>
Link copied to clipboard
fun <T> Registry<T>.toMap(): Map<ResourceLocation, T>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun validateWrite(p0: ResourceKey<T>)
Link copied to clipboard
open override fun wrapAsHolder(p0: T): Holder<T>