Package net.minecraft.src
Class Material
java.lang.Object
net.minecraft.src.Material
- Direct Known Subclasses:
CementMaterial,MaterialLiquid,MaterialLogic,MaterialPortal,MaterialTransparent,NetherGrothMaterial,SoulforgedSteelMaterial
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Materialstatic final Materialstatic final Materialstatic final MaterialCake's material, see BlockCakestatic final Materialstatic final Materialstatic final Materialstatic final Materialstatic final MaterialThe material for crafted snow.static final Materialstatic final Materialstatic final Materialstatic final MaterialThe material used by BlockGrass.static final Materialstatic final Materialstatic final Materialstatic final Materialstatic final Materialstatic final Materialfinal MapColorThe color index used to draw the blocks of this material on maps.static final MaterialPistons' material.static final Materialstatic final MaterialMaterial used for portalsstatic final Materialpumpkinstatic final Materialstatic final Materialstatic final Materialstatic final Materialstatic final Materialstatic final Materialstatic final Materialstatic final Materialstatic final MaterialWeb's material.static final Material -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns if this material is considered solid or notbooleanbooleanbooleanIf true, this material doesn't damage axes or consume hunger if the harvesting axe is of sufficient qualitybooleanWill prevent grass from growing on dirt underneath and kill any grass below it if it returns truebooleanReturns if the block can burn or not.intReturns the mobility information of the material, 0 = free, 1 = can't push but can move over, 2 = total immobility and stop pistons.booleangetMobsCanSpawnOn(int iDimension) booleanReturns true if blocks with this material can always be mined in adventure mode.booleanisLiquid()Returns if blocks of these materials are liquids.booleanisOpaque()Indicate if the material is opaquebooleanReturns whether the material can be replaced by other blocks when placed - eg snow, vines and tall grass.booleanisSolid()booleanReturns true if the material can be harvested without a tool (or with the wrong tool)protected MaterialSet the canBurn bool to True and return the current object.protected MaterialThis type of material can't be pushed, and pistons are blocked to move.This type of material can't be pushed, but pistons can move over it.Setsreplaceableto true.Makes blocks with this material require the correct tool to be harvested.Marks the material as translucent
-
Field Details
-
air
-
grass
The material used by BlockGrass. -
ground
-
wood
-
rock
-
iron
-
anvil
-
water
-
lava
-
leaves
-
plants
-
vine
-
sponge
-
cloth
-
fire
-
sand
-
circuits
-
materialCarpet
-
glass
-
redstoneLight
-
tnt
-
coral
-
ice
-
snow
-
craftedSnow
The material for crafted snow. -
cactus
-
clay
-
pumpkin
pumpkin -
dragonEgg
-
portal
Material used for portals -
cake
Cake's material, see BlockCake -
web
Web's material. -
piston
Pistons' material. -
materialMapColor
The color index used to draw the blocks of this material on maps.
-
-
Constructor Details
-
Material
-
-
Method Details
-
blocksEndermenPickup
public boolean blocksEndermenPickup() -
setBlocksEndermenPickup
-
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 -
setTranslucent
Marks the material as translucent -
setRequiresTool
Makes blocks with this material require the correct tool to be harvested. -
setBurning
Set the canBurn bool to True and return the current object. -
getCanBurn
public boolean getCanBurn()Returns if the block can burn or not. -
setReplaceable
Setsreplaceableto true. -
isReplaceable
public boolean isReplaceable()Returns whether the material can be replaced by other blocks when placed - eg snow, vines and tall grass. -
isOpaque
public boolean isOpaque()Indicate if the material is opaque -
isToolNotRequired
public boolean isToolNotRequired()Returns true if the material can be harvested without a tool (or with the wrong tool) -
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. -
setNoPushMobility
This type of material can't be pushed, but pistons can move over it. -
setImmovableMobility
This type of material can't be pushed, and pistons are blocked to move. -
getMobsCanSpawnOn
public boolean getMobsCanSpawnOn(int iDimension) -
setMobsCantSpawnOn
-
setNetherMobsCanSpawnOn
-
getAxesEfficientOn
public boolean getAxesEfficientOn() -
setAxesEfficientOn
-
getAxesTreatAsVegetation
public boolean getAxesTreatAsVegetation()If true, this material doesn't damage axes or consume hunger if the harvesting axe is of sufficient quality -
setAxesTreatAsVegetation
-
breaksSaw
public boolean breaksSaw() -
setAdventureModeExempt
- See Also:
-
isAdventureModeExempt
public boolean isAdventureModeExempt()Returns true if blocks with this material can always be mined in adventure mode. -
setDoesNotBreakSaw
-