MCToolType
A Tooltype is used to identify what kind of blocks a tool can mine, or inversely, what kind of tool is required to mine a given block.
This class was added by a mod with mod-id contenttweaker
. Так что если вы хотите использовать эту функцию, вам нужно установить этот мод.
Импорт класса
Вам может потребоваться импортировать пакет, если вы столкнетесь с какими-либо проблемами (например, с заливкой массива), так что лучше быть в безопасности, чем извиняться и добавлять импорт.
Implemented Interfaces
MCToolType implements the following interfaces. That means any method available to them can also be used on this class.
Constructors
Constructs a ToolType object. If one with the given name already exists, they will internally point to the same toolType. Otherwise, a new one with the name is created (The same holds true for Brackets as well!)
Methods
getName
Gets the name of this toolType. The name is what is used in the Bracket expression after the <tooltype:
Return type: String
hashCode
Returns the object's hash code
Return type: int
toString
Get the string representation of this type. Is different from commandString!
Return type: String
Свойства
Операторы
EQUALS
Compares if two given MCToolType objects are equal