Class NeoForgeRegistrySupplier<R extends T,T>
java.lang.Object
dev.ultreon.mods.xinexlib.registrar.NeoForgeRegistrySupplier<R,T>
- All Implemented Interfaces:
RegistrySupplier<R,,T> net.minecraft.core.Holder<T>,net.neoforged.neoforge.common.extensions.IHolderExtension<T>,net.neoforged.neoforge.registries.datamaps.IWithData<T>
public class NeoForgeRegistrySupplier<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> -
Constructor Summary
ConstructorsConstructorDescriptionNeoForgeRegistrySupplier(net.neoforged.neoforge.registries.DeferredHolder<T, R> holder, Registrar<T> registrar, net.minecraft.resources.ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSerializeIn(@NotNull net.minecraft.core.HolderOwner<T> holderOwner) net.minecraft.resources.ResourceLocationgetId()booleanbooleanbooleanbooleanis(@NotNull net.minecraft.resources.ResourceLocation resourceLocation) booleanbooleanisBound()@NotNull net.minecraft.core.Holder.Kindkind()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 net.neoforged.neoforge.common.extensions.IHolderExtension
getDelegate, getKey, unwrapLookupMethods inherited from interface net.neoforged.neoforge.registries.datamaps.IWithData
getDataMethods inherited from interface dev.ultreon.mods.xinexlib.registrar.RegistrySupplier
get
-
Constructor Details
-
NeoForgeRegistrySupplier
-
-
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(@NotNull @NotNull net.minecraft.resources.ResourceLocation resourceLocation) -
is
-
is
-
is
-
tags
-
unwrap
-
unwrapKey
-
kind
@NotNull public @NotNull net.minecraft.core.Holder.Kind kind() -
canSerializeIn
-
is
-