public class MaterialLogic extends Material
air, anvil, cactus, cake, circuits, clay, cloth, coral, craftedSnow, dragonEgg, fire, glass, grass, ground, ice, iron, lava, leaves, materialCarpet, materialMapColor, piston, plants, portal, pumpkin, redstoneLight, rock, sand, snow, sponge, tnt, vine, water, web, wood
Constructor and Description |
---|
MaterialLogic(MapColor par1MapColor) |
Modifier and Type | Method and Description |
---|---|
boolean |
blocksMovement()
Returns if this material is considered solid or not
|
boolean |
getCanBlockGrass()
Will prevent grass from growing on dirt underneath and kill any grass below it if it returns true
|
boolean |
isSolid() |
getCanBurn, getMaterialMobility, isAdventureModeExempt, isLiquid, isOpaque, isReplaceable, isToolNotRequired, setReplaceable
public MaterialLogic(MapColor par1MapColor)
public boolean getCanBlockGrass()
getCanBlockGrass
in class Material
public boolean blocksMovement()
blocksMovement
in class Material