Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.minecraft.src
Class Material

    java.lang.Object
      net.minecraft.src.Material

Direct Known Subclasses:
  MaterialLiquid, MaterialLogic, MaterialPortal, MaterialTransparent

    public class Material

extends Object

Field Summary
`static Material` | `air`
`static Material` | `cactus`
`static Material` | `cake` Cake's material, see BlockCake
`static Material` | `circuits`
`static Material` | `clay`
`static Material` | `cloth`
`static Material` | `craftedSnow` The material for crafted snow.
`static Material` | `dragonEgg`
`static Material` | `field_76261_t`
`static Material` | `field_82717_g`
`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`

Constructor Summary
`Material(MapColor par1MapColor)`

Method Summary
`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` | `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` | `isGroundCover()` Return whether the material is a form of ground cover, e.g.
`boolean` | `isHarvestable()` Returns true if material can be harvested by player.
`boolean` | `isLiquid()` Returns if blocks of these materials are liquids.
`boolean` | `isOpaque()` Indicate if the material is opaque
`boolean` | `isSolid()`
`Material` | `setGroundCover()` Sets the material as a form of ground cover, e.g.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### air

    public static final Material air

### grass

    public static final Material grass

  The material used by BlockGrass.

### ground

    public static final Material ground

### wood

    public static final Material wood

### rock

    public static final Material rock

### iron

    public static final Material iron

### field_82717_g

    public static final Material field_82717_g

### water

    public static final Material water

### lava

    public static final Material lava

### leaves

    public static final Material leaves

### plants

    public static final Material plants

### vine

    public static final Material vine

### sponge

    public static final Material sponge

### cloth

    public static final Material cloth

### fire

    public static final Material fire

### sand

    public static final Material sand

### circuits

    public static final Material circuits

### glass

    public static final Material glass

### redstoneLight

    public static final Material redstoneLight

### tnt

    public static final Material tnt

### field_76261_t

    public static final Material field_76261_t

### ice

    public static final Material ice

### snow

    public static final Material snow

### craftedSnow

    public static final Material craftedSnow

  The material for crafted snow.

### cactus

    public static final Material cactus

### clay

    public static final Material clay

### pumpkin

    public static final Material pumpkin

  pumpkin

### dragonEgg

    public static final Material dragonEgg

### portal

    public static final Material portal

  Material used for portals

### cake

    public static final Material cake

  Cake's material, see BlockCake

### web

    public static final Material web

  Web's material.

### piston

    public static final Material piston

  Pistons' material.

### materialMapColor

    public final MapColor materialMapColor

  The color index used to draw the blocks of this material on maps.

Constructor Detail

### Material

    public Material(MapColor par1MapColor)

Method Detail

### isLiquid

    public boolean isLiquid()

  Returns if blocks of these materials are liquids.

### isSolid

    public boolean isSolid()

### getCanBlockGrass

    public boolean getCanBlockGrass()

  Will prevent grass from growing on dirt underneath and kill any grass below it if it returns true

### blocksMovement

    public boolean blocksMovement()

  Returns if this material is considered solid or not

### getCanBurn

    public boolean getCanBurn()

  Returns if the block can burn or not.

### setGroundCover

    public Material setGroundCover()

  Sets the material as a form of ground cover, e.g. Snow

### isGroundCover

    public boolean isGroundCover()

  Return whether the material is a form of ground cover, e.g. Snow

### isOpaque

    public boolean isOpaque()

  Indicate if the material is opaque

### isHarvestable

    public boolean isHarvestable()

  Returns true if material can be harvested by player.

### getMaterialMobility

    public 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD