Class HTDeferredHolder

  • All Implemented Interfaces:
    hiiragi283.core.api.registry.HTHolderLike , hiiragi283.core.api.resource.HTIdLike , hiiragi283.core.api.resource.HTKeyLike , hiiragi283.core.api.resource.HTKeyLike.HolderDelegate , java.util.function.Supplier , java.util.function.Supplier , net.minecraft.core.Holder , net.neoforged.neoforge.common.extensions.IHolderExtension , net.neoforged.neoforge.registries.datamaps.IWithData

    
    public class HTDeferredHolder<R extends Object, T extends R>
    extends DeferredHolder<R, T> implements HTHolderLike<R, T>, HTKeyLike.HolderDelegate<R>
                        

    HTHolderLikeを実装したDeferredHolderの拡張クラスです。

    Since:

    0.1.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ResourceLocation getId() 保持しているIDを返します。
      ResourceKey<R> getKey()
      Holder<R> getHolder() 保持しているHolderを返します。
      • Methods inherited from class hiiragi283.core.api.registry.HTDeferredHolder

        getDelegate, getId, getKey, getRegisteredName, isBound
      • Methods inherited from class net.minecraft.core.Holder

        canSerializeIn, is, is, is, is, is, kind, tags, unwrap, unwrapKey, value
      • Methods inherited from class java.util.function.Supplier

        get
      • Methods inherited from class net.neoforged.neoforge.registries.DeferredHolder

        asOptional
      • Methods inherited from class net.neoforged.neoforge.registries.datamaps.IWithData

        getData
      • Methods inherited from class net.neoforged.neoforge.common.extensions.IHolderExtension

        getDelegate, unwrapLookup
      • Methods inherited from class hiiragi283.core.api.resource.HTKeyLike

        getResourceKey
      • Methods inherited from class hiiragi283.core.api.resource.HTIdLike

        getNamespace, getPath
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HTDeferredHolder

        HTDeferredHolder(ResourceKey<R> key)
      • HTDeferredHolder

        HTDeferredHolder(ResourceKey<out Registry<R>> key, ResourceLocation id)
    • Method Detail

      • getId

         ResourceLocation getId()

        保持しているIDを返します。

      • getHolder

         Holder<R> getHolder()

        保持しているHolderを返します。