WrappingRegistry

class WrappingRegistry<T : Any, W : Any>(key: ResourceKey<out Registry<T>>, lifecycle: Lifecycle, wrapperRegistry: WritableRegistry<W>, toWrapper: (T) -> W) : MappedRegistry<T>

Constructors

Link copied to clipboard
constructor(key: ResourceKey<out Registry<T>>, lifecycle: Lifecycle, wrapperRegistry: WritableRegistry<W>, toWrapper: (T) -> W)

Properties

Link copied to clipboard
val temporaryUnfrozenMap: MutableMap<ResourceLocation, T>

Functions

Link copied to clipboard
open fun asHolderIdMap(): IdMap<Holder<T>>
Link copied to clipboard
Link copied to clipboard
open override fun bindTag(p0: TagKey<T>, p1: MutableList<Holder<T>>)
Link copied to clipboard
open override fun byId(p0: Int): T?
Link copied to clipboard
open fun byIdOrThrow(p0: 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
open fun canSerializeIn(p0: HolderOwner<T>): Boolean
Link copied to clipboard
open fun clearIntrusiveHolder(p0: T)
Link copied to clipboard
operator fun Registry<*>.contains(key: String): Boolean
operator fun Registry<*>.contains(key: Key): 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
open fun filterElements(p0: Predicate<T>): HolderLookup.RegistryLookup<T>
Link copied to clipboard
open fun filterFeatures(p0: FeatureFlagSet): HolderLookup.RegistryLookup<T>
Link copied to clipboard
fun Iterable<Player>.filterInRange(location: Location, maxDistance: Double): List<Player>
Link copied to clipboard
open override fun freeze(): Registry<T>
Link copied to clipboard
open operator override fun get(p0: Int): Optional<Holder.Reference<T>>
open operator override fun get(p0: ResourceKey<T>): Optional<Holder.Reference<T>>
open operator override fun get(p0: ResourceLocation): Optional<Holder.Reference<T>>
open operator override fun get(p0: TagKey<T>): Optional<HolderSet.Named<T>>
Link copied to clipboard
operator fun <T> Registry<T>.get(key: String): Optional<Holder.Reference<T>>
fun <T> Registry<T>.get(id: ResourceLocation): Holder<T>?
Link copied to clipboard
open override fun getAny(): Optional<Holder.Reference<T>>
Link copied to clipboard
open override fun getId(@Nullable p0: T?): Int
Link copied to clipboard
open fun getIdOrThrow(p0: T): Int
Link copied to clipboard
open override fun getKey(p0: T): ResourceLocation?
Link copied to clipboard
open fun getOptional(@Nullable p0: ResourceKey<T>?): Optional<T>
open fun getOptional(@Nullable p0: ResourceLocation?): Optional<T>
Link copied to clipboard
fun <T> Registry<T>.getOrCreateHolder(id: ResourceLocation): Holder<T>
Link copied to clipboard
fun <T> Registry<T>.getOrNull(key: String): Holder.Reference<T>?
fun <T> Registry<T>.getOrNull(key: Key): Holder.Reference<T>?
fun <T> Registry<T>.getOrNull(id: ResourceLocation): Holder.Reference<T>?
Link copied to clipboard
open fun getOrThrow(p0: ResourceKey<T>): Holder.Reference<T>
open fun getOrThrow(p0: TagKey<T>): HolderSet.Named<T>
Link copied to clipboard
fun <T> Registry<T>.getOrThrow(key: String): Holder<T>
fun <T> Registry<T>.getOrThrow(key: Key): Holder<T>
fun <T> Registry<T>.getOrThrow(id: ResourceLocation): Holder<T>
Link copied to clipboard
open override fun getRandom(p0: RandomSource): Optional<Holder.Reference<T>>
Link copied to clipboard
open fun getRandomElementOf(p0: TagKey<T>, p1: RandomSource): Optional<Holder<T>>
Link copied to clipboard
open override fun getResourceKey(p0: T): Optional<ResourceKey<T>>
Link copied to clipboard
open fun getTagOrEmpty(p0: TagKey<T>): MutableIterable<Holder<T>>
Link copied to clipboard
open override fun getTags(): Stream<HolderSet.Named<T>>
Link copied to clipboard
open override fun getValue(@Nullable p0: ResourceKey<T>?): T?
open override fun getValue(@Nullable p0: ResourceLocation?): T?
Link copied to clipboard
fun <T> Registry<T>.getValue(key: String?): T?
fun <T> Registry<T>.getValue(key: Key?): T?
Link copied to clipboard
open fun getValueOrThrow(p0: ResourceKey<T>): T
Link copied to clipboard
fun <T> Registry<T>.getValueOrThrow(key: String): T
fun <T> Registry<T>.getValueOrThrow(id: ResourceLocation): T
Link copied to clipboard
open fun holderByNameCodec(): Codec<Holder<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(p0: DynamicOps<U>): Stream<U>
Link copied to clipboard
open override fun keySet(): MutableSet<ResourceLocation>
Link copied to clipboard
open fun listElementIds(): Stream<ResourceKey<T>>
Link copied to clipboard
open override fun listElements(): Stream<Holder.Reference<T>>
Link copied to clipboard
open fun listTagIds(): Stream<TagKey<T>>
Link copied to clipboard
open override fun listTags(): Stream<HolderSet.Named<T>>
Link copied to clipboard
open override fun prepareTagReload(p0: TagLoader.LoadResult<T>): Registry.PendingTags<T>
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: Key, value: T): Holder.Reference<T>
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
operator fun <T : Any> WritableRegistry<T>.set(name: String, value: T)
operator fun <T : Any> WritableRegistry<T>.set(key: Key, value: T)
operator fun <T : Any> WritableRegistry<T>.set(key: ResourceKey<T>, 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
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>