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
. Perciò, è necessario avere questa mod installata per poter utilizzare questa funzione.
Importing the class
Potrebbe essere necessario importare il pacchetto, se si incontrano dei problemi (come castare un vettore), quindi meglio essere sicuri e aggiungere la direttiva di importazione.
Interfacce Implementate
MCToolType implements the following interfaces. Ciò significa che ogni metodo presente nell'interfaccia può essere usato anche per questa classe.
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. Il nome che viene utilizzato nell'espressione angolare dopo <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
Properties
Operators
EQUALS
Compares if two given MCToolType objects are equal