Package hiiragi283.core.api.item.tool
Class HTToolType
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class HTToolType implements Comparable<HTToolType>
素材ツールの定義を担うクラスです。
- Since:
0.8.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHTToolType.BuilderHTToolTypeのビルダークラスです。
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final HTLangPatternProviderlangPatternprivate final List<String>recipePatternprivate final List<TagKey<Item>>toolTags
-
Constructor Summary
Constructors Constructor Description HTToolType(String name, String idPattern, Function2<HTToolMaterial, Item.Properties, Item> toolFactory, Function1<HTToolMaterial, ItemAttributeModifiers> attributeFactory, HTLangPatternProvider langPattern, List<String> recipePattern, List<TagKey<Item>> toolTags)
-
Method Summary
Modifier and Type Method Description final StringgetName()final HTLangPatternProvidergetLangPattern()final List<String>getRecipePattern()final List<TagKey<Item>>getToolTags()final ResourceKey<Item>createKey(HTMaterialLike material)final ItemcreateTool(HTToolMaterial material)IntegercompareTo(HTToolType other)final static Map<String, HTToolType>getAllTypes()final static HTToolTypecreate(String name, Function1<HTToolType.Builder, Unit> builderAction)-
-
Constructor Detail
-
HTToolType
HTToolType(String name, String idPattern, Function2<HTToolMaterial, Item.Properties, Item> toolFactory, Function1<HTToolMaterial, ItemAttributeModifiers> attributeFactory, HTLangPatternProvider langPattern, List<String> recipePattern, List<TagKey<Item>> toolTags)
-
-
Method Detail
-
getLangPattern
final HTLangPatternProvider getLangPattern()
-
getRecipePattern
final List<String> getRecipePattern()
-
getToolTags
final List<TagKey<Item>> getToolTags()
-
createKey
final ResourceKey<Item> createKey(HTMaterialLike material)
-
createTool
final Item createTool(HTToolMaterial material)
-
compareTo
Integer compareTo(HTToolType other)
-
getAllTypes
final static Map<String, HTToolType> getAllTypes()
-
create
final static HTToolType create(String name, Function1<HTToolType.Builder, Unit> builderAction)
-
-
-
-