public class Material extends Object
Modifier and Type | Field and Description |
---|---|
static Material |
air |
static Material |
anvil |
static Material |
cactus |
static Material |
cake
Cake's material, see BlockCake
|
static Material |
circuits |
static Material |
clay |
static Material |
cloth |
static Material |
coral |
static Material |
craftedSnow
The material for crafted snow.
|
static Material |
dragonEgg |
static Material |
fire |
static Material |
glass |
static Material |
grass
The material used by BlockGrass.
|
static Material |
ground |
static Material |
ice |
static Material |
iron |
static Material |
lava |
static Material |
leaves |
MapColor |
materialMapColor
The color index used to draw the blocks of this material on maps.
|
static Material |
piston
Pistons' material.
|
static Material |
plants |
static Material |
portal
Material used for portals
|
static Material |
pumpkin
pumpkin
|
static Material |
redstoneLight |
static Material |
rock |
static Material |
sand |
static Material |
snow |
static Material |
sponge |
static Material |
tnt |
static Material |
vine |
static Material |
water |
static Material |
web
Web's material.
|
static Material |
wood |
Modifier and Type | Method and Description |
---|---|
boolean |
blocksMovement()
Returns if this material is considered solid or not
|
boolean |
func_85157_q() |
boolean |
getCanBlockGrass()
Will prevent grass from growing on dirt underneath and kill any grass below it if it returns true
|
boolean |
getCanBurn()
Returns if the block can burn or not.
|
int |
getMaterialMobility()
Returns the mobility information of the material, 0 = free, 1 = can't push but can move over, 2 = total
immobility and stop pistons.
|
boolean |
isLiquid()
Returns if blocks of these materials are liquids.
|
boolean |
isOpaque()
Indicate if the material is opaque
|
boolean |
isReplaceable()
Returns whether the material can be replaced by other blocks when placed - eg snow, vines and tall grass.
|
boolean |
isSolid() |
boolean |
isToolNotRequired()
Returns true if the material can be harvested without a tool (or with the wrong tool)
|
Material |
setReplaceable()
Sets
replaceable to true. |
public static final Material redstoneLight
public static final Material craftedSnow
public final MapColor materialMapColor
public boolean isLiquid()
public boolean isSolid()
public boolean getCanBlockGrass()
public boolean blocksMovement()
public boolean getCanBurn()
public Material setReplaceable()
replaceable
to true.public boolean isReplaceable()
public boolean isOpaque()
public boolean isToolNotRequired()
public int getMaterialMobility()
public boolean func_85157_q()