YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.block.material.Material Class Reference
Inheritance diagram for net.minecraft.block.material.Material:
net.minecraft.block.material.MaterialLiquid net.minecraft.block.material.MaterialLogic net.minecraft.block.material.MaterialPortal net.minecraft.block.material.MaterialTransparent

Public Member Functions

 Material (MapColor par1MapColor)
 
boolean isLiquid ()
 
boolean isSolid ()
 
boolean getCanBlockGrass ()
 
boolean blocksMovement ()
 
boolean getCanBurn ()
 
Material setReplaceable ()
 
boolean isReplaceable ()
 
boolean isOpaque ()
 
boolean isToolNotRequired ()
 
int getMaterialMobility ()
 
boolean isAlwaysHarvested ()
 

Public Attributes

final MapColor materialMapColor
 

Static Public Attributes

static final Material air = new MaterialTransparent(MapColor.airColor)
 
static final Material grass = new Material(MapColor.grassColor)
 
static final Material ground = new Material(MapColor.dirtColor)
 
static final Material wood = (new Material(MapColor.woodColor)).setBurning()
 
static final Material rock = (new Material(MapColor.stoneColor)).setRequiresTool()
 
static final Material iron = (new Material(MapColor.ironColor)).setRequiresTool()
 
static final Material anvil = (new Material(MapColor.ironColor)).setRequiresTool().setImmovableMobility()
 
static final Material water = (new MaterialLiquid(MapColor.waterColor)).setNoPushMobility()
 
static final Material lava = (new MaterialLiquid(MapColor.tntColor)).setNoPushMobility()
 
static final Material leaves = (new Material(MapColor.foliageColor)).setBurning().setTranslucent().setNoPushMobility()
 
static final Material plants = (new MaterialLogic(MapColor.foliageColor)).setNoPushMobility()
 
static final Material vine = (new MaterialLogic(MapColor.foliageColor)).setBurning().setNoPushMobility().setReplaceable()
 
static final Material sponge = new Material(MapColor.clothColor)
 
static final Material cloth = (new Material(MapColor.clothColor)).setBurning()
 
static final Material fire = (new MaterialTransparent(MapColor.airColor)).setNoPushMobility()
 
static final Material sand = new Material(MapColor.sandColor)
 
static final Material circuits = (new MaterialLogic(MapColor.airColor)).setNoPushMobility()
 
static final Material glass = (new Material(MapColor.airColor)).setTranslucent().setAlwaysHarvested()
 
static final Material redstoneLight = (new Material(MapColor.airColor)).setAlwaysHarvested()
 
static final Material tnt = (new Material(MapColor.tntColor)).setBurning().setTranslucent()
 
static final Material coral = (new Material(MapColor.foliageColor)).setNoPushMobility()
 
static final Material ice = (new Material(MapColor.iceColor)).setTranslucent().setAlwaysHarvested()
 
static final Material snow = (new MaterialLogic(MapColor.snowColor)).setReplaceable().setTranslucent().setRequiresTool().setNoPushMobility()
 
static final Material craftedSnow = (new Material(MapColor.snowColor)).setRequiresTool()
 
static final Material cactus = (new Material(MapColor.foliageColor)).setTranslucent().setNoPushMobility()
 
static final Material clay = new Material(MapColor.clayColor)
 
static final Material pumpkin = (new Material(MapColor.foliageColor)).setNoPushMobility()
 
static final Material dragonEgg = (new Material(MapColor.foliageColor)).setNoPushMobility()
 
static final Material portal = (new MaterialPortal(MapColor.airColor)).setImmovableMobility()
 
static final Material cake = (new Material(MapColor.airColor)).setNoPushMobility()
 
static final Material web = (new MaterialWeb(MapColor.clothColor)).setRequiresTool().setNoPushMobility()
 
static final Material piston = (new Material(MapColor.stoneColor)).setImmovableMobility()
 

Protected Member Functions

Material setRequiresTool ()
 
Material setBurning ()
 
Material setNoPushMobility ()
 
Material setImmovableMobility ()
 
Material setAlwaysHarvested ()
 

Constructor & Destructor Documentation

net.minecraft.block.material.Material.Material ( MapColor  par1MapColor)

Member Function Documentation

boolean net.minecraft.block.material.Material.blocksMovement ( )

Returns if this material is considered solid or not

boolean net.minecraft.block.material.Material.getCanBlockGrass ( )

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

boolean net.minecraft.block.material.Material.getCanBurn ( )

Returns if the block can burn or not.

int net.minecraft.block.material.Material.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 net.minecraft.block.material.Material.isAlwaysHarvested ( )

Check to see if we can harvest it in any case.

boolean net.minecraft.block.material.Material.isLiquid ( )

Returns if blocks of these materials are liquids.

boolean net.minecraft.block.material.Material.isOpaque ( )

Indicate if the material is opaque

boolean net.minecraft.block.material.Material.isReplaceable ( )

Returns whether the material can be replaced by other blocks when placed - eg snow, vines and tall grass.

boolean net.minecraft.block.material.Material.isSolid ( )
boolean net.minecraft.block.material.Material.isToolNotRequired ( )

Returns true if the material can be harvested without a tool (or with the wrong tool)

Material net.minecraft.block.material.Material.setAlwaysHarvested ( )
protected

Set as harvestable in any case.

Material net.minecraft.block.material.Material.setBurning ( )
protected

Set the canBurn bool to True and return the current object.

Material net.minecraft.block.material.Material.setImmovableMobility ( )
protected

This type of material can't be pushed, and pistons are blocked to move.

Material net.minecraft.block.material.Material.setNoPushMobility ( )
protected

This type of material can't be pushed, but pistons can move over it.

Material net.minecraft.block.material.Material.setReplaceable ( )

Sets replaceable to true.

Material net.minecraft.block.material.Material.setRequiresTool ( )
protected

Makes blocks with this material require the correct tool to be harvested.

Member Data Documentation

final Material net.minecraft.block.material.Material.air = new MaterialTransparent(MapColor.airColor)
static
final Material net.minecraft.block.material.Material.anvil = (new Material(MapColor.ironColor)).setRequiresTool().setImmovableMobility()
static
final Material net.minecraft.block.material.Material.cactus = (new Material(MapColor.foliageColor)).setTranslucent().setNoPushMobility()
static
final Material net.minecraft.block.material.Material.cake = (new Material(MapColor.airColor)).setNoPushMobility()
static

Cake's material, see BlockCake

final Material net.minecraft.block.material.Material.circuits = (new MaterialLogic(MapColor.airColor)).setNoPushMobility()
static
final Material net.minecraft.block.material.Material.clay = new Material(MapColor.clayColor)
static
final Material net.minecraft.block.material.Material.cloth = (new Material(MapColor.clothColor)).setBurning()
static
final Material net.minecraft.block.material.Material.coral = (new Material(MapColor.foliageColor)).setNoPushMobility()
static
final Material net.minecraft.block.material.Material.craftedSnow = (new Material(MapColor.snowColor)).setRequiresTool()
static

The material for crafted snow.

final Material net.minecraft.block.material.Material.dragonEgg = (new Material(MapColor.foliageColor)).setNoPushMobility()
static
final Material net.minecraft.block.material.Material.fire = (new MaterialTransparent(MapColor.airColor)).setNoPushMobility()
static
final Material net.minecraft.block.material.Material.glass = (new Material(MapColor.airColor)).setTranslucent().setAlwaysHarvested()
static
final Material net.minecraft.block.material.Material.grass = new Material(MapColor.grassColor)
static

The material used by BlockGrass.

final Material net.minecraft.block.material.Material.ground = new Material(MapColor.dirtColor)
static
final Material net.minecraft.block.material.Material.ice = (new Material(MapColor.iceColor)).setTranslucent().setAlwaysHarvested()
static
final Material net.minecraft.block.material.Material.iron = (new Material(MapColor.ironColor)).setRequiresTool()
static
final Material net.minecraft.block.material.Material.lava = (new MaterialLiquid(MapColor.tntColor)).setNoPushMobility()
static
final Material net.minecraft.block.material.Material.leaves = (new Material(MapColor.foliageColor)).setBurning().setTranslucent().setNoPushMobility()
static
final MapColor net.minecraft.block.material.Material.materialMapColor

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

final Material net.minecraft.block.material.Material.piston = (new Material(MapColor.stoneColor)).setImmovableMobility()
static

Pistons' material.

final Material net.minecraft.block.material.Material.plants = (new MaterialLogic(MapColor.foliageColor)).setNoPushMobility()
static
final Material net.minecraft.block.material.Material.portal = (new MaterialPortal(MapColor.airColor)).setImmovableMobility()
static

Material used for portals

final Material net.minecraft.block.material.Material.pumpkin = (new Material(MapColor.foliageColor)).setNoPushMobility()
static

pumpkin

final Material net.minecraft.block.material.Material.redstoneLight = (new Material(MapColor.airColor)).setAlwaysHarvested()
static
final Material net.minecraft.block.material.Material.rock = (new Material(MapColor.stoneColor)).setRequiresTool()
static
final Material net.minecraft.block.material.Material.sand = new Material(MapColor.sandColor)
static
final Material net.minecraft.block.material.Material.snow = (new MaterialLogic(MapColor.snowColor)).setReplaceable().setTranslucent().setRequiresTool().setNoPushMobility()
static
final Material net.minecraft.block.material.Material.sponge = new Material(MapColor.clothColor)
static
final Material net.minecraft.block.material.Material.tnt = (new Material(MapColor.tntColor)).setBurning().setTranslucent()
static
final Material net.minecraft.block.material.Material.vine = (new MaterialLogic(MapColor.foliageColor)).setBurning().setNoPushMobility().setReplaceable()
static
final Material net.minecraft.block.material.Material.water = (new MaterialLiquid(MapColor.waterColor)).setNoPushMobility()
static
final Material net.minecraft.block.material.Material.web = (new MaterialWeb(MapColor.clothColor)).setRequiresTool().setNoPushMobility()
static

Web's material.

final Material net.minecraft.block.material.Material.wood = (new Material(MapColor.woodColor)).setBurning()
static

The documentation for this class was generated from the following file: