Interface HTKeyLike

  • All Implemented Interfaces:
    hiiragi283.core.api.resource.HTIdLike

    
    public interface HTKeyLike<R extends Object>
     implements HTIdLike
                        

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

    Since:

    0.1.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
      abstract ResourceKey<R> getResourceKey() 保持しているResourceKeyを返します。
      Boolean isOf(ResourceKey<R> key) 指定したkeyが保持しているResourceKeyと一致するか判定します。
      Boolean isOf(HTKeyLike<R> other) 指定したotherと保持しているResourceKeyが一致するか判定します。
      ResourceLocation getId() 保持しているIDを返します。
      String getNamespace()
      String getPath()
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getResourceKey

         abstract ResourceKey<R> getResourceKey()

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

      • isOf

         Boolean isOf(ResourceKey<R> key)

        指定したkeyが保持しているResourceKeyと一致するか判定します。

        Since:

        0.6.0

      • isOf

         Boolean isOf(HTKeyLike<R> other)

        指定したotherと保持しているResourceKeyが一致するか判定します。

        Since:

        0.6.0

      • getId

         ResourceLocation getId()

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