Class MappedRegistryMixin<T>
java.lang.Object
dev.upcraft.sparkweave.fabric.mixin.impl.registry.MappedRegistryMixin<T>
- All Implemented Interfaces:
com.mojang.serialization.Keyable,FabricRegistryHack<T>,Iterable<T>,net.minecraft.core.HolderGetter<T>,net.minecraft.core.HolderLookup<T>,net.minecraft.core.HolderLookup.RegistryLookup<T>,net.minecraft.core.HolderOwner<T>,net.minecraft.core.IdMap<T>,net.minecraft.core.Registry<T>,net.minecraft.core.WritableRegistry<T>
public abstract class MappedRegistryMixin<T>
extends Object
implements net.minecraft.core.WritableRegistry<T>, FabricRegistryHack<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.HolderLookup
net.minecraft.core.HolderLookup.Provider, net.minecraft.core.HolderLookup.RegistryLookup<T>Nested classes/interfaces inherited from interface net.minecraft.core.HolderLookup.RegistryLookup
net.minecraft.core.HolderLookup.RegistryLookup.Delegate<T>Nested classes/interfaces inherited from interface net.minecraft.core.Registry
net.minecraft.core.Registry.PendingTags<T> -
Field Summary
Fields inherited from interface net.minecraft.core.IdMap
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key()net.minecraft.core.Holder.Reference<T> sparkweave$createHolder(net.minecraft.resources.ResourceKey<T> key, Supplier<T> factory) protected abstract voidvalidateWrite(net.minecraft.resources.ResourceKey<T> key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.core.HolderGetter
get, get, getOrThrow, getOrThrowMethods inherited from interface net.minecraft.core.HolderLookup
listElementIds, listElements, listTagIds, listTagsMethods inherited from interface net.minecraft.core.HolderLookup.RegistryLookup
filterElements, filterFeatures, registryLifecycleMethods inherited from interface net.minecraft.core.HolderOwner
canSerializeInMethods inherited from interface net.minecraft.core.IdMap
byId, byIdOrThrow, getIdOrThrow, sizeMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface net.minecraft.core.Registry
asHolderIdMap, byNameCodec, containsKey, containsKey, createIntrusiveHolder, entrySet, freeze, get, get, getAny, getId, getKey, getOptional, getOptional, getRandom, getRandomElementOf, getResourceKey, getTagOrEmpty, getTags, getValue, getValue, getValueOrThrow, holderByNameCodec, keys, keySet, prepareTagReload, registrationInfo, registryKeySet, stream, wrapAsHolderMethods inherited from interface net.minecraft.core.WritableRegistry
bindTag, createRegistrationLookup, isEmpty, register
-
Constructor Details
-
MappedRegistryMixin
public MappedRegistryMixin()
-
-
Method Details
-
validateWrite
-
key
-
sparkweave$createHolder
public net.minecraft.core.Holder.Reference<T> sparkweave$createHolder(net.minecraft.resources.ResourceKey<T> key, Supplier<T> factory) - Specified by:
sparkweave$createHolderin interfaceFabricRegistryHack<T>
-