An IMaterial object represents the material a block is made of.

패키지 임포트하기

Link to 패키지-임포트하기

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 crafttweaker.block.IMaterial;

ZenGetters/ZenMethods without parameters

Link to zengetterszenmethods-without-parameters

ZenGetterZenMethod반환 타입
ZenGetter
blocksLight
ZenMethod
blocksLight()
반환 타입
bool
ZenGetter
blocksMovement
ZenMethod
blocksMovement()
반환 타입
bool
ZenGetter
canBurn
ZenMethod
getCanBurn()
반환 타입
bool
ZenGetter
mobilityFlag
ZenMethod
getMobilityFlag()
반환 타입
string
ZenGetter
liquid
ZenMethod
isLiquid()
반환 타입
bool
ZenGetter
opaque
ZenMethod
isOpaque()
반환 타입
bool
ZenGetter
replaceable
ZenMethod
isReplaceable()
반환 타입
bool
ZenGetter
solid
ZenMethod
isSolid()
반환 타입
bool
ZenGetter
toolNotRequired
ZenMethod
isToolNotRequired()
반환 타입
bool
ZenGetter
ZenMethod
setReplaceable()
반환 타입
IMaterial

ZenMethods with parameters

Link to zenmethods-with-parameters

Check if two IMaterials match

Link to check-if-two-imaterials-match

Uses an IMaterial.
Returns a bool.

ZenScript
Copy
materialObj.matches(IMaterial other);

Getting Vanilla Minecraft Materials

Link to getting-vanilla-minecraft-materials

You can use these methods to get the vanilla minecraft materials

ZenScript
Copy
crafttweaker.blocks.IMaterial.air();
crafttweaker.blocks.IMaterial.anvil();
crafttweaker.blocks.IMaterial.barrier();
crafttweaker.blocks.IMaterial.cactus();
crafttweaker.blocks.IMaterial.cake();
crafttweaker.blocks.IMaterial.carpet();
crafttweaker.blocks.IMaterial.circuits();
crafttweaker.blocks.IMaterial.clay();
crafttweaker.blocks.IMaterial.cloth();
crafttweaker.blocks.IMaterial.coral();
crafttweaker.blocks.IMaterial.craftedSnow();
crafttweaker.blocks.IMaterial.dragonEgg();
crafttweaker.blocks.IMaterial.fire();
crafttweaker.blocks.IMaterial.glass();
crafttweaker.blocks.IMaterial.gourd();
crafttweaker.blocks.IMaterial.grass();
crafttweaker.blocks.IMaterial.ground();
crafttweaker.blocks.IMaterial.ice();
crafttweaker.blocks.IMaterial.iron();
crafttweaker.blocks.IMaterial.lava();
crafttweaker.blocks.IMaterial.leaves();
crafttweaker.blocks.IMaterial.packedIce();
crafttweaker.blocks.IMaterial.piston();
crafttweaker.blocks.IMaterial.plants();
crafttweaker.blocks.IMaterial.portal();
crafttweaker.blocks.IMaterial.redstoneLight();
crafttweaker.blocks.IMaterial.rock();
crafttweaker.blocks.IMaterial.sand();
crafttweaker.blocks.IMaterial.snow();
crafttweaker.blocks.IMaterial.sponge();
crafttweaker.blocks.IMaterial.structureVoid();
crafttweaker.blocks.IMaterial.tnt();
crafttweaker.blocks.IMaterial.vine();
crafttweaker.blocks.IMaterial.water();
crafttweaker.blocks.IMaterial.web();
crafttweaker.blocks.IMaterial.wood();