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 interfaceHTToolType.ToolFactorypublic final classHTToolType.BuilderHTToolTypeのビルダークラスです。
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final HTToolType.ToolFactorytoolFactoryprivate final HTLangPatternProviderlangPatternprivate final List<TagKey<Item>>toolTags
-
Constructor Summary
Constructors Constructor Description HTToolType(String name, String idPattern, HTToolType.ToolFactory toolFactory, HTLangPatternProvider langPattern, List<TagKey<Item>> toolTags)
-
Method Summary
Modifier and Type Method Description final StringgetName()final HTToolType.ToolFactorygetToolFactory()final HTLangPatternProvidergetLangPattern()final List<TagKey<Item>>getToolTags()final ResourceLocationcreateId(HTMaterialLike 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, HTToolType.ToolFactory toolFactory, HTLangPatternProvider langPattern, List<TagKey<Item>> toolTags)
-
-
Method Detail
-
getToolFactory
final HTToolType.ToolFactory getToolFactory()
-
getLangPattern
final HTLangPatternProvider getLangPattern()
-
getToolTags
final List<TagKey<Item>> getToolTags()
-
createId
final ResourceLocation createId(HTMaterialLike 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)
-
-
-
-