Class Material

java.lang.Object
net.minecraft.src.Material
Direct Known Subclasses:
CementMaterial, MaterialLiquid, MaterialLogic, MaterialPortal, MaterialTransparent, NetherGrothMaterial, SoulforgedSteelMaterial

public class Material extends Object
  • Field Details

    • 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
    • anvil

      public static final Material anvil
    • 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
    • materialCarpet

      public static final Material materialCarpet
    • glass

      public static final Material glass
    • redstoneLight

      public static final Material redstoneLight
    • tnt

      public static final Material tnt
    • coral

      public static final Material coral
    • 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 Details

    • Material

      public Material(MapColor par1MapColor)
  • Method Details

    • blocksEndermenPickup

      public boolean blocksEndermenPickup()
    • setBlocksEndermenPickup

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

      public Material setTranslucent()
      Marks the material as translucent
    • setRequiresTool

      public Material setRequiresTool()
      Makes blocks with this material require the correct tool to be harvested.
    • setBurning

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

      public Material setReplaceable()
      Sets replaceable to 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

      public Material setNoPushMobility()
      This type of material can't be pushed, but pistons can move over it.
    • setImmovableMobility

      protected Material setImmovableMobility()
      This type of material can't be pushed, and pistons are blocked to move.
    • getMobsCanSpawnOn

      public boolean getMobsCanSpawnOn(int iDimension)
    • setMobsCantSpawnOn

      public Material setMobsCantSpawnOn()
    • setNetherMobsCanSpawnOn

      public Material setNetherMobsCanSpawnOn()
    • getAxesEfficientOn

      public boolean getAxesEfficientOn()
    • setAxesEfficientOn

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

      public Material setAxesTreatAsVegetation()
    • breaksSaw

      public boolean breaksSaw()
    • setAdventureModeExempt

      protected Material setAdventureModeExempt()
      See Also:
    • isAdventureModeExempt

      public boolean isAdventureModeExempt()
      Returns true if blocks with this material can always be mined in adventure mode.
    • setDoesNotBreakSaw

      public Material setDoesNotBreakSaw()