Interface RegistrySupplier<R extends T,T>

All Superinterfaces:
net.minecraft.core.Holder<T>, net.neoforged.neoforge.common.extensions.IHolderExtension<T>, net.neoforged.neoforge.registries.datamaps.IWithData<T>
All Known Implementing Classes:
NeoForgeRegistrySupplier

public interface RegistrySupplier<R extends T,T> extends net.minecraft.core.Holder<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>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default R
    get()
     
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.core.Registry<T>
     

    Methods inherited from interface net.minecraft.core.Holder

    canSerializeIn, getRegisteredName, is, is, is, is, is, isBound, kind, tags, unwrap, unwrapKey, value

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IHolderExtension

    getDelegate, getKey, unwrapLookup

    Methods inherited from interface net.neoforged.neoforge.registries.datamaps.IWithData

    getData
  • Method Details

    • get

      default R get()
    • asOptional

      Optional<R> asOptional()
    • getId

      net.minecraft.resources.ResourceLocation getId()
    • registry

      net.minecraft.core.Registry<T> registry()