ITICMaterial
Link to iticmaterial
A Tinkers' Construct IMaterial (not to be confused with ContentTweaker's IMaterial) is what a Tinker's construct tool can be made of.
Dieses Paket importieren
Link to dieses-paket-importieren
It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import modtweaker.tconstruct.ITICMaterial;
Retrieving such an object
Link to retrieving-such-an-object
You can retrieve an ITICMaterial object using the ITICMaterial Bracket Handler:
ZenScript Copyval stone = <ticmat:stone>;
Fields
Link to fields
You can get/set the following fields:
ZenGetter | ZenSetter | Return/Setter Type | Beschreibung |
---|---|---|---|
ZenGetter getName | ZenSetter | Return/Setter Type string | Beschreibung The material's name |
ZenGetter definition | ZenSetter | Return/Setter Type IMaterialDefinition | Beschreibung The material's definition |
ZenGetter durabilityHead | ZenSetter durabilityHead | Return/Setter Type int | Beschreibung A toolhead made from this material has this durability |
ZenGetter miningSpeedHead | ZenSetter miningSpeedHead | Return/Setter Type float | Beschreibung A toolhead made from this material has this mining speed |
ZenGetter attackHead | ZenSetter attackHead | Return/Setter Type float | Beschreibung A toolhead made from this material has this attack damage |
ZenGetter harvestLevelHead | ZenSetter harvestLevelHead | Return/Setter Type int | Beschreibung A toolhead made from this material has this harvest level |
ZenGetter durabilityHandle | ZenSetter durabilityHandle | Return/Setter Type int | Beschreibung A toolhandle made from this material has this durability |
ZenGetter modifierHandle | ZenSetter modifierHandle | Return/Setter Type float | Beschreibung A toolhandle made from this material has this durability modifier |
ZenGetter durabilityExtra | ZenSetter durabilityExtra | Return/Setter Type int | Beschreibung Extra toolparts made from this material have this base durability |
ZenGetter arrowModifier | ZenSetter arrowModifier | Return/Setter Type float | Beschreibung Arrows made from this material have this durability modifier |
ZenGetter arrowBonusAmmo | ZenSetter arrowBonusAmmo | Return/Setter Type int | Beschreibung Arrows made from this material have this additional ammunition |
ZenGetter fletchingModifier | ZenSetter fletchingModifier | Return/Setter Type float | Beschreibung Fletchings made from this material have this durability modifier |
ZenGetter fletchingAccuracy | ZenSetter fletchingAccuracy | Return/Setter Type float | Beschreibung Fletchings made from this material provide this accuracy |
ZenGetter bowDrawSpeed | ZenSetter bowDrawSpeed | Return/Setter Type float | Beschreibung Bows made from this material have this draw speed |
ZenGetter bowRange | ZenSetter bowRange | Return/Setter Type float | Beschreibung Bows made from this material have this range |
ZenGetter bonusDamage | ZenSetter bonusDamage | Return/Setter Type float | Beschreibung Bows made from this material have this additional damage |
ZenGetter bowStringModifier | ZenSetter bowStringModifier | Return/Setter Type float | Beschreibung Bow strings made from this material have this durability modifier |
Methoden
Link to methoden
boolean matches(ITICMaterial other);
→ returns if the given material is equal toother
boolean hasStats(string statName);
→ returns if the material has the stat namedstatName
boolean hasHeadStats();
→ returns if the material has head statsboolean hasHandleStats();
→ returns if the material has handle statsboolean hasExtraStats();
→ returns if the material has extra statsboolean hasArrowStats();
→ returns if the material has arrow statsboolean hasFletchingStats();
→ returns if the material has fletching statsboolean hasBowStats();
→ returns if the material has bow statsboolean hasBowStringStats();
→ returns if the material has bow string stats