Interface HTResourceType.Registered

  • All Implemented Interfaces:
    hiiragi283.core.api.resource.HTIdLike , hiiragi283.core.api.resource.HTKeyLike , hiiragi283.core.api.resource.HTKeyLike.HolderDelegate , hiiragi283.core.api.storage.resource.HTResourceType , hiiragi283.core.api.text.HTHasText , net.neoforged.neoforge.registries.datamaps.IWithData

    
    public interface HTResourceType.Registered<TYPE extends Object>
     implements HTResourceType<TYPE>, HTKeyLike.HolderDelegate<TYPE>, IWithData<TYPE>
                        

    Holderを保持するHTResourceTypeの拡張インターフェースです。

    Since:

    0.4.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean isOf(TYPE type) 指定した種類が,このリソースが保持している種類と一致するか判定します。
      Boolean isOf(ResourceKey<TYPE> key) 指定したIDが,このリソースが保持しているIDと一致するか判定します。
      Boolean isOf(TagKey<TYPE> tagKey) 指定したTagKeyに,このリソースの保持している種類が含まれているか判定します。
      Boolean isOf(Holder<TYPE> holder) 指定したHolderが,このリソースが保持しているHolderと一致するか判定します。
      Boolean isOf(HolderSet<TYPE> holderSet) 指定したHolderSetに,このリソースの保持しているHolderが含まれているか判定します。
      <T extends Any> T getData(DataMapType<TYPE, T> type)
      • Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceType

        type
      • Methods inherited from class hiiragi283.core.api.text.HTHasText

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

        getId, getNamespace, getPath
      • Methods inherited from class hiiragi283.core.api.resource.HTKeyLike.HolderDelegate

        getHolder, getResourceKey
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • isOf

         Boolean isOf(TYPE type)

        指定した種類が,このリソースが保持している種類と一致するか判定します。

      • isOf

         Boolean isOf(ResourceKey<TYPE> key)

        指定したIDが,このリソースが保持しているIDと一致するか判定します。

      • isOf

         Boolean isOf(TagKey<TYPE> tagKey)

        指定したTagKeyに,このリソースの保持している種類が含まれているか判定します。

      • isOf

         Boolean isOf(Holder<TYPE> holder)

        指定したHolderが,このリソースが保持しているHolderと一致するか判定します。

      • isOf

         Boolean isOf(HolderSet<TYPE> holderSet)

        指定したHolderSetに,このリソースの保持しているHolderが含まれているか判定します。