Interface RegistrySupplier<T>

All Superinterfaces:
Supplier<T>
All Known Implementing Classes:
DeferredHolderMixin

public interface RegistrySupplier<T> extends Supplier<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.core.Registry<? super T>
     
    net.minecraft.resources.ResourceKey<? super T>
     
    <R> net.minecraft.core.Holder<R>
     
    default boolean
    is(Supplier<T> other)
     
    default boolean
    is(T other)
     
    boolean
    matches(net.minecraft.tags.TagKey<? super T> tag)
     
  • Method Details

    • get

      T get()
      Specified by:
      get in interface Supplier<T>
    • is

      default boolean is(T other)
    • is

      default boolean is(Supplier<T> other)
    • matches

      boolean matches(net.minecraft.tags.TagKey<? super T> tag)
    • getId

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

      net.minecraft.resources.ResourceKey<? super T> getRegistryKey()
    • getRegistry

      net.minecraft.core.Registry<? super T> getRegistry()
    • holder

      <R> net.minecraft.core.Holder<R> holder()