Material
Link to material
Importare la Classe
Link to importare-la-classe
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.block.material.Material;
Metodi
Link to metodi
Name: blocksMotion
Return Type: boolean
ZenScript Copy// Material.blocksMotion() as boolean
myMaterial.blocksMotion();
Name: getColor
Return Type: MaterialColor
ZenScript Copy// Material.getColor() as MaterialColor
myMaterial.getColor();
Name: getCommandString
Gets the bracket syntax for this Material
Returns: The <blockmaterial>
Bracket Syntax for this material
Return Type: string
ZenScript Copy// Material.getCommandString() as string
myMaterial.getCommandString();
Name: getPushReaction
Return Type: PushReaction
ZenScript Copy// Material.getPushReaction() as PushReaction
myMaterial.getPushReaction();
Name: isFlammable
Return Type: boolean
ZenScript Copy// Material.isFlammable() as boolean
myMaterial.isFlammable();
Name: isLiquid
Return Type: boolean
ZenScript Copy// Material.isLiquid() as boolean
myMaterial.isLiquid();
Name: isReplaceable
Return Type: boolean
ZenScript Copy// Material.isReplaceable() as boolean
myMaterial.isReplaceable();
Name: isSolid
Return Type: boolean
ZenScript Copy// Material.isSolid() as boolean
myMaterial.isSolid();
Name: isSolidBlocking
Return Type: boolean
ZenScript Copy// Material.isSolidBlocking() as boolean
myMaterial.isSolidBlocking();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome blocksMotion | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome color | Tipo MaterialColor | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome commandString | Tipo string | Ha Getter sì | Ha Setter no | Descrizione Gets the bracket syntax for this Material |
Nome isFlammable | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isLiquid | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isReplaceable | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSolid | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSolidBlocking | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome pushReaction | Tipo PushReaction | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |