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

    Constructors
    Constructor
    Description
    NeoForgeRegistrySupplier(net.neoforged.neoforge.registries.DeferredHolder<T,R> holder, Registrar<T> registrar, net.minecraft.resources.ResourceLocation id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    canSerializeIn(@NotNull net.minecraft.core.HolderOwner<T> holderOwner)
     
    net.minecraft.resources.ResourceLocation
     
    boolean
    is(@NotNull Predicate<net.minecraft.resources.ResourceKey<T>> predicate)
     
    boolean
    is(@NotNull net.minecraft.core.Holder<T> holder)
     
    boolean
    is(@NotNull net.minecraft.resources.ResourceKey<T> resourceKey)
     
    boolean
    is(@NotNull net.minecraft.resources.ResourceLocation resourceLocation)
     
    boolean
    is(@NotNull net.minecraft.tags.TagKey<T> tagKey)
     
    boolean
     
    @NotNull net.minecraft.core.Holder.Kind
     
    net.minecraft.core.Registry<T>
     
    @NotNull Stream<net.minecraft.tags.TagKey<T>>
     
    @NotNull com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<T>,T>
     
    @NotNull Optional<net.minecraft.resources.ResourceKey<T>>
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.core.Holder

    getRegisteredName

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

    getDelegate, getKey, unwrapLookup

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

    getData

    Methods inherited from interface dev.ultreon.mods.xinexlib.registrar.RegistrySupplier

    get
  • Constructor Details

    • NeoForgeRegistrySupplier

      public NeoForgeRegistrySupplier(net.neoforged.neoforge.registries.DeferredHolder<T,R> holder, Registrar<T> registrar, net.minecraft.resources.ResourceLocation id)
  • Method Details

    • asOptional

      public Optional<R> asOptional()
      Specified by:
      asOptional in interface RegistrySupplier<R extends T,T>
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Specified by:
      getId in interface RegistrySupplier<R extends T,T>
    • registry

      public net.minecraft.core.Registry<T> registry()
      Specified by:
      registry in interface RegistrySupplier<R extends T,T>
    • value

      @NotNull public T value()
      Specified by:
      value in interface net.minecraft.core.Holder<R extends T>
    • isBound

      public boolean isBound()
      Specified by:
      isBound in interface net.minecraft.core.Holder<R extends T>
    • is

      public boolean is(@NotNull @NotNull net.minecraft.resources.ResourceLocation resourceLocation)
      Specified by:
      is in interface net.minecraft.core.Holder<R extends T>
    • is

      public boolean is(@NotNull @NotNull net.minecraft.resources.ResourceKey<T> resourceKey)
      Specified by:
      is in interface net.minecraft.core.Holder<R extends T>
    • is

      public boolean is(@NotNull @NotNull net.minecraft.tags.TagKey<T> tagKey)
      Specified by:
      is in interface net.minecraft.core.Holder<R extends T>
    • is

      public boolean is(@NotNull @NotNull net.minecraft.core.Holder<T> holder)
      Specified by:
      is in interface net.minecraft.core.Holder<R extends T>
    • tags

      @NotNull public @NotNull Stream<net.minecraft.tags.TagKey<T>> tags()
      Specified by:
      tags in interface net.minecraft.core.Holder<R extends T>
    • unwrap

      @NotNull public @NotNull com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<T>,T> unwrap()
      Specified by:
      unwrap in interface net.minecraft.core.Holder<R extends T>
    • unwrapKey

      @NotNull public @NotNull Optional<net.minecraft.resources.ResourceKey<T>> unwrapKey()
      Specified by:
      unwrapKey in interface net.minecraft.core.Holder<R extends T>
    • kind

      @NotNull public @NotNull net.minecraft.core.Holder.Kind kind()
      Specified by:
      kind in interface net.minecraft.core.Holder<R extends T>
    • canSerializeIn

      public boolean canSerializeIn(@NotNull @NotNull net.minecraft.core.HolderOwner<T> holderOwner)
      Specified by:
      canSerializeIn in interface net.minecraft.core.Holder<R extends T>
    • is

      public boolean is(@NotNull @NotNull Predicate<net.minecraft.resources.ResourceKey<T>> predicate)
      Specified by:
      is in interface net.minecraft.core.Holder<R extends T>