Package hiiragi283.core.api.tag
Class HTTagPrefix
-
- All Implemented Interfaces:
public final class HTTagPrefixタグのプレフィックスを表すクラスです。
- Since:
0.7.0
Hiiragi Tsubasa
-
-
Constructor Summary
Constructors Constructor Description HTTagPrefix(ResourceLocation commonTagId, String tagPattern)HTTagPrefix(String commonTagId, String tagPattern)
-
Method Summary
Modifier and Type Method Description final <T extends Any> TagKey<T>createCommonTagKey(ResourceKey<out Registry<T>> key)指定したレジストリキーから,共通タグを生成します。 final <T extends Any> TagKey<T>createTagKey(ResourceKey<out Registry<T>> key, HTMaterialLike material)指定したレジストリキーと素材から,素材の共通タグを生成します。 final TagKey<Item>itemTagKey(HTMaterialLike material)指定した素材から,アイテムの素材の共通タグを生成します。 -
-
Method Detail
-
createCommonTagKey
final <T extends Any> TagKey<T> createCommonTagKey(ResourceKey<out Registry<T>> key)
指定したレジストリキーから,共通タグを生成します。
-
createTagKey
final <T extends Any> TagKey<T> createTagKey(ResourceKey<out Registry<T>> key, HTMaterialLike material)
-
itemTagKey
final TagKey<Item> itemTagKey(HTMaterialLike material)
指定した素材から,アイテムの素材の共通タグを生成します。
-
-
-
-