Package hiiragi283.core.api.tag
Class HTTagPrefix
-
- All Implemented Interfaces:
-
hiiragi283.core.api.property.HTPropertyMap,kotlin.Comparable
public final class HTTagPrefix implements Comparable<HTTagPrefix>, HTPropertyMap
タグのプレフィックスを表すクラスです。
- Since:
0.7.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHTTagPrefix.Builder
-
Method Summary
Modifier and Type Method Description final StringgetName()final ResourceLocationcreateId(HTMaterialLike material)指定した素材から素材アイテムなどのIDを生成します。 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)指定した素材から,アイテムの素材の共通タグを生成します。 IntegercompareTo(HTTagPrefix other)final static HTTagPrefixcreate(String name, String commonTagPattern, String tagPattern, Function1<HTPropertyMap.Mutable, Unit> builderAction)-
-
Method Detail
-
createId
final ResourceLocation createId(HTMaterialLike material)
指定した素材から素材アイテムなどのIDを生成します。
-
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)
指定した素材から,アイテムの素材の共通タグを生成します。
-
compareTo
Integer compareTo(HTTagPrefix other)
-
create
final static HTTagPrefix create(String name, String commonTagPattern, String tagPattern, Function1<HTPropertyMap.Mutable, Unit> builderAction)
-
-
-
-