Class TagKeysKt

  • All Implemented Interfaces:

    
    public final class TagKeysKt
    
                        
    • 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
      final static <T extends Any> TagKey<T> createTagKey(ResourceKey<out Registry<T>> $self, ResourceLocation id) 指定したレジストリキーとIDからTagKeyを作成します。
      final static <T extends Any> TagKey<T> createCommonTag(ResourceKey<out Registry<T>> $self, String path) 指定したレジストリキーとpathからTagKeyを作成します。
      final static <T extends Any> TagKey<T> createCommonTag(ResourceKey<out Registry<T>> $self, String path) 指定したレジストリキーとpathからTagKeyを作成します。
      final static MutableComponent getName(TagKey<?> $self) このTagKeyの名前を取得します。
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • createTagKey

         final static <T extends Any> TagKey<T> createTagKey(ResourceKey<out Registry<T>> $self, ResourceLocation id)

        指定したレジストリキーとIDからTagKeyを作成します。

        Since:

        0.1.0

      • createCommonTag

         final static <T extends Any> TagKey<T> createCommonTag(ResourceKey<out Registry<T>> $self, String path)

        指定したレジストリキーとpathからTagKeyを作成します。

        Returns:

        名前空間が"c"となるTagKeyのインスタンス

        Since:

        0.1.0

      • createCommonTag

         final static <T extends Any> TagKey<T> createCommonTag(ResourceKey<out Registry<T>> $self, String path)

        指定したレジストリキーとpathからTagKeyを作成します。

        Returns:

        名前空間が"c"となるTagKeyのインスタンス

        Since:

        0.1.0

      • getName

         final static MutableComponent getName(TagKey<?> $self)

        このTagKeyの名前を取得します。

        Returns:

        翻訳がない場合は#を先頭につけたID

        Since:

        0.1.0