Class FabricRegistrySupplier<R extends T,T>
java.lang.Object
dev.ultreon.mods.xinexlib.registrar.FabricRegistrySupplier<R,T>
- All Implemented Interfaces:
RegistrySupplier<R,,T> net.minecraft.core.Holder<T>
public abstract class FabricRegistrySupplier<R extends T,T>
extends Object
implements RegistrySupplier<R,T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.Holder
net.minecraft.core.Holder.Direct<T>, net.minecraft.core.Holder.Kind, net.minecraft.core.Holder.Reference<T> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFabricRegistrySupplier(Registrar<T> registrar, net.minecraft.resources.ResourceKey<R> key) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSerializeIn(net.minecraft.core.HolderOwner<T> owner) net.minecraft.resources.ResourceLocationgetId()booleanbooleanbooleanbooleanis(net.minecraft.resources.ResourceLocation location) booleanbooleanisBound()@NotNull net.minecraft.core.Holder.Kindkind()protected abstract voidregister()net.minecraft.core.Registry<T> registry()tags()unwrap()value()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.core.Holder
getRegisteredNameMethods inherited from interface dev.ultreon.mods.xinexlib.registrar.RegistrySupplier
get
-
Field Details
-
value
-
-
Constructor Details
-
FabricRegistrySupplier
-
-
Method Details
-
asOptional
- Specified by:
asOptionalin interfaceRegistrySupplier<R extends T,T>
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfaceRegistrySupplier<R extends T,T>
-
registry
- Specified by:
registryin interfaceRegistrySupplier<R extends T,T>
-
value
-
isBound
public boolean isBound() -
is
public boolean is(net.minecraft.resources.ResourceLocation location) -
is
-
is
-
is
-
is
-
tags
-
unwrap
-
unwrapKey
-
kind
@NotNull public @NotNull net.minecraft.core.Holder.Kind kind() -
canSerializeIn
-
register
protected abstract void register()
-