org.bukkit
Enum Material

java.lang.Object
  extended by java.lang.Enum<Material>
      extended by org.bukkit.Material
All Implemented Interfaces:
Serializable, Comparable<Material>

public enum Material
extends Enum<Material>

An enum of all material ids accepted by the official server + client


Enum Constant Summary
ACTIVATOR_RAIL
           
AIR
           
ANVIL
           
APPLE
           
ARROW
           
BAKED_POTATO
           
BEACON
           
BED
           
BED_BLOCK
           
BEDROCK
           
BIRCH_WOOD_STAIRS
           
BLAZE_POWDER
           
BLAZE_ROD
           
BOAT
           
BONE
           
BOOK
           
BOOK_AND_QUILL
           
BOOKSHELF
           
BOW
           
BOWL
           
BREAD
           
BREWING_STAND
           
BREWING_STAND_ITEM
           
BRICK
           
BRICK_STAIRS
           
BROWN_MUSHROOM
           
BUCKET
           
BURNING_FURNACE
           
CACTUS
           
CAKE
           
CAKE_BLOCK
           
CARPET
           
CARROT
           
CARROT_ITEM
           
CARROT_STICK
           
CAULDRON
           
CAULDRON_ITEM
           
CHAINMAIL_BOOTS
           
CHAINMAIL_CHESTPLATE
           
CHAINMAIL_HELMET
           
CHAINMAIL_LEGGINGS
           
CHEST
           
CLAY
           
CLAY_BALL
           
CLAY_BRICK
           
COAL
           
COAL_BLOCK
           
COAL_ORE
           
COBBLE_WALL
           
COBBLESTONE
           
COBBLESTONE_STAIRS
           
COCOA
           
COMMAND
           
COMPASS
           
COOKED_BEEF
           
COOKED_CHICKEN
           
COOKED_FISH
           
COOKIE
           
CROPS
           
DAYLIGHT_DETECTOR
           
DEAD_BUSH
           
DETECTOR_RAIL
           
DIAMOND
           
DIAMOND_AXE
           
DIAMOND_BARDING
           
DIAMOND_BLOCK
           
DIAMOND_BOOTS
           
DIAMOND_CHESTPLATE
           
DIAMOND_HELMET
           
DIAMOND_HOE
           
DIAMOND_LEGGINGS
           
DIAMOND_ORE
           
DIAMOND_PICKAXE
           
DIAMOND_SPADE
           
DIAMOND_SWORD
           
DIODE
           
DIODE_BLOCK_OFF
           
DIODE_BLOCK_ON
           
DIRT
           
DISPENSER
           
DOUBLE_STEP
           
DRAGON_EGG
           
DROPPER
           
EGG
           
EMERALD
           
EMERALD_BLOCK
           
EMERALD_ORE
           
EMPTY_MAP
           
ENCHANTED_BOOK
           
ENCHANTMENT_TABLE
           
ENDER_CHEST
           
ENDER_PEARL
           
ENDER_PORTAL
           
ENDER_PORTAL_FRAME
           
ENDER_STONE
           
EXP_BOTTLE
           
EXPLOSIVE_MINECART
           
EYE_OF_ENDER
           
FEATHER
           
FENCE
           
FENCE_GATE
           
FERMENTED_SPIDER_EYE
           
FIRE
           
FIREBALL
           
FIREWORK
           
FIREWORK_CHARGE
           
FISHING_ROD
           
FLINT
           
FLINT_AND_STEEL
           
FLOWER_POT
           
FLOWER_POT_ITEM
           
FURNACE
           
GHAST_TEAR
           
GLASS
           
GLASS_BOTTLE
           
GLOWING_REDSTONE_ORE
           
GLOWSTONE
           
GLOWSTONE_DUST
           
GOLD_AXE
           
GOLD_BARDING
           
GOLD_BLOCK
           
GOLD_BOOTS
           
GOLD_CHESTPLATE
           
GOLD_HELMET
           
GOLD_HOE
           
GOLD_INGOT
           
GOLD_LEGGINGS
           
GOLD_NUGGET
           
GOLD_ORE
           
GOLD_PICKAXE
           
GOLD_PLATE
           
GOLD_RECORD
           
GOLD_SPADE
           
GOLD_SWORD
           
GOLDEN_APPLE
           
GOLDEN_CARROT
           
GRASS
           
GRAVEL
           
GREEN_RECORD
           
GRILLED_PORK
           
HARD_CLAY
           
HAY_BLOCK
           
HOPPER
           
HOPPER_MINECART
           
HUGE_MUSHROOM_1
           
HUGE_MUSHROOM_2
           
ICE
           
INK_SACK
           
IRON_AXE
           
IRON_BARDING
           
IRON_BLOCK
           
IRON_BOOTS
           
IRON_CHESTPLATE
           
IRON_DOOR
           
IRON_DOOR_BLOCK
           
IRON_FENCE
           
IRON_HELMET
           
IRON_HOE
           
IRON_INGOT
           
IRON_LEGGINGS
           
IRON_ORE
           
IRON_PICKAXE
           
IRON_PLATE
           
IRON_SPADE
           
IRON_SWORD
           
ITEM_FRAME
           
JACK_O_LANTERN
           
JUKEBOX
           
JUNGLE_WOOD_STAIRS
           
LADDER
           
LAPIS_BLOCK
           
LAPIS_ORE
           
LAVA
           
LAVA_BUCKET
           
LEASH
           
LEATHER
           
LEATHER_BOOTS
           
LEATHER_CHESTPLATE
           
LEATHER_HELMET
           
LEATHER_LEGGINGS
           
LEAVES
           
LEVER
           
LOCKED_CHEST
           
LOG
           
LONG_GRASS
           
MAGMA_CREAM
           
MAP
           
MELON
           
MELON_BLOCK
           
MELON_SEEDS
           
MELON_STEM
           
MILK_BUCKET
           
MINECART
           
MOB_SPAWNER
           
MONSTER_EGG
           
MONSTER_EGGS
           
MOSSY_COBBLESTONE
           
MUSHROOM_SOUP
           
MYCEL
           
NAME_TAG
           
NETHER_BRICK
           
NETHER_BRICK_ITEM
           
NETHER_BRICK_STAIRS
           
NETHER_FENCE
           
NETHER_STALK
           
NETHER_STAR
           
NETHER_WARTS
           
NETHERRACK
           
NOTE_BLOCK
           
OBSIDIAN
           
PAINTING
           
PAPER
           
PISTON_BASE
           
PISTON_EXTENSION
           
PISTON_MOVING_PIECE
           
PISTON_STICKY_BASE
           
POISONOUS_POTATO
           
PORK
           
PORTAL
           
POTATO
           
POTATO_ITEM
           
POTION
           
POWERED_MINECART
           
POWERED_RAIL
           
PUMPKIN
           
PUMPKIN_PIE
           
PUMPKIN_SEEDS
           
PUMPKIN_STEM
           
QUARTZ
           
QUARTZ_BLOCK
           
QUARTZ_ORE
           
QUARTZ_STAIRS
           
RAILS
           
RAW_BEEF
           
RAW_CHICKEN
           
RAW_FISH
           
RECORD_10
           
RECORD_11
           
RECORD_12
           
RECORD_3
           
RECORD_4
           
RECORD_5
           
RECORD_6
           
RECORD_7
           
RECORD_8
           
RECORD_9
           
RED_MUSHROOM
           
RED_ROSE
           
REDSTONE
           
REDSTONE_BLOCK
           
REDSTONE_COMPARATOR
           
REDSTONE_COMPARATOR_OFF
           
REDSTONE_COMPARATOR_ON
           
REDSTONE_LAMP_OFF
           
REDSTONE_LAMP_ON
           
REDSTONE_ORE
           
REDSTONE_TORCH_OFF
           
REDSTONE_TORCH_ON
           
REDSTONE_WIRE
           
ROTTEN_FLESH
           
SADDLE
           
SAND
           
SANDSTONE
           
SANDSTONE_STAIRS
           
SAPLING
           
SEEDS
           
SHEARS
           
SIGN
           
SIGN_POST
           
SKULL
           
SKULL_ITEM
           
SLIME_BALL
           
SMOOTH_BRICK
           
SMOOTH_STAIRS
           
SNOW
           
SNOW_BALL
           
SNOW_BLOCK
           
SOIL
           
SOUL_SAND
           
SPECKLED_MELON
           
SPIDER_EYE
           
SPONGE
           
SPRUCE_WOOD_STAIRS
           
STAINED_CLAY
           
STATIONARY_LAVA
           
STATIONARY_WATER
           
STEP
           
STICK
           
STONE
           
STONE_AXE
           
STONE_BUTTON
           
STONE_HOE
           
STONE_PICKAXE
           
STONE_PLATE
           
STONE_SPADE
           
STONE_SWORD
           
STORAGE_MINECART
           
STRING
           
SUGAR
           
SUGAR_CANE
           
SUGAR_CANE_BLOCK
           
SULPHUR
           
THIN_GLASS
           
TNT
           
TORCH
           
TRAP_DOOR
           
TRAPPED_CHEST
           
TRIPWIRE
           
TRIPWIRE_HOOK
           
VINE
           
WALL_SIGN
           
WATCH
           
WATER
           
WATER_BUCKET
           
WATER_LILY
           
WEB
           
WHEAT
           
WOOD
           
WOOD_AXE
           
WOOD_BUTTON
           
WOOD_DOOR
           
WOOD_DOUBLE_STEP
           
WOOD_HOE
           
WOOD_PICKAXE
           
WOOD_PLATE
           
WOOD_SPADE
           
WOOD_STAIRS
           
WOOD_STEP
           
WOOD_SWORD
           
WOODEN_DOOR
           
WOOL
           
WORKBENCH
           
WRITTEN_BOOK
           
YELLOW_FLOWER
           
 
Method Summary
 Class<? extends MaterialData> getData()
          Gets the MaterialData class associated with this Material
 int getId()
          Deprecated. Magic value
static Material getMaterial(int id)
          Deprecated. Magic value
static Material getMaterial(String name)
          Attempts to get the Material with the given name.
 short getMaxDurability()
          Gets the maximum durability of this material
 int getMaxStackSize()
          Gets the maximum amount of this material that can be held in a stack
 MaterialData getNewData(byte raw)
          Deprecated. Magic value
 boolean hasGravity()
           
 boolean isBlock()
          Checks if this Material is a placable block
 boolean isBurnable()
          Check if the material is a block and can burn away
 boolean isEdible()
          Checks if this Material is edible.
 boolean isFlammable()
          Check if the material is a block and can catch fire
 boolean isOccluding()
          Check if the material is a block and completely blocks vision
 boolean isRecord()
           
 boolean isSolid()
          Check if the material is a block and solid (cannot be passed through by a player)
 boolean isTransparent()
          Check if the material is a block and does not block any light
static Material matchMaterial(String name)
          Attempts to match the Material with the given name.
static Material valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Material[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AIR

public static final Material AIR

STONE

public static final Material STONE

GRASS

public static final Material GRASS

DIRT

public static final Material DIRT

COBBLESTONE

public static final Material COBBLESTONE

WOOD

public static final Material WOOD

SAPLING

public static final Material SAPLING

BEDROCK

public static final Material BEDROCK

WATER

public static final Material WATER

STATIONARY_WATER

public static final Material STATIONARY_WATER

LAVA

public static final Material LAVA

STATIONARY_LAVA

public static final Material STATIONARY_LAVA

SAND

public static final Material SAND

GRAVEL

public static final Material GRAVEL

GOLD_ORE

public static final Material GOLD_ORE

IRON_ORE

public static final Material IRON_ORE

COAL_ORE

public static final Material COAL_ORE

LOG

public static final Material LOG

LEAVES

public static final Material LEAVES

SPONGE

public static final Material SPONGE

GLASS

public static final Material GLASS

LAPIS_ORE

public static final Material LAPIS_ORE

LAPIS_BLOCK

public static final Material LAPIS_BLOCK

DISPENSER

public static final Material DISPENSER

SANDSTONE

public static final Material SANDSTONE

NOTE_BLOCK

public static final Material NOTE_BLOCK

BED_BLOCK

public static final Material BED_BLOCK

POWERED_RAIL

public static final Material POWERED_RAIL

DETECTOR_RAIL

public static final Material DETECTOR_RAIL

PISTON_STICKY_BASE

public static final Material PISTON_STICKY_BASE

WEB

public static final Material WEB

LONG_GRASS

public static final Material LONG_GRASS

DEAD_BUSH

public static final Material DEAD_BUSH

PISTON_BASE

public static final Material PISTON_BASE

PISTON_EXTENSION

public static final Material PISTON_EXTENSION

WOOL

public static final Material WOOL

PISTON_MOVING_PIECE

public static final Material PISTON_MOVING_PIECE

YELLOW_FLOWER

public static final Material YELLOW_FLOWER

RED_ROSE

public static final Material RED_ROSE

BROWN_MUSHROOM

public static final Material BROWN_MUSHROOM

RED_MUSHROOM

public static final Material RED_MUSHROOM

GOLD_BLOCK

public static final Material GOLD_BLOCK

IRON_BLOCK

public static final Material IRON_BLOCK

DOUBLE_STEP

public static final Material DOUBLE_STEP

STEP

public static final Material STEP

BRICK

public static final Material BRICK

TNT

public static final Material TNT

BOOKSHELF

public static final Material BOOKSHELF

MOSSY_COBBLESTONE

public static final Material MOSSY_COBBLESTONE

OBSIDIAN

public static final Material OBSIDIAN

TORCH

public static final Material TORCH

FIRE

public static final Material FIRE

MOB_SPAWNER

public static final Material MOB_SPAWNER

WOOD_STAIRS

public static final Material WOOD_STAIRS

CHEST

public static final Material CHEST

REDSTONE_WIRE

public static final Material REDSTONE_WIRE

DIAMOND_ORE

public static final Material DIAMOND_ORE

DIAMOND_BLOCK

public static final Material DIAMOND_BLOCK

WORKBENCH

public static final Material WORKBENCH

CROPS

public static final Material CROPS

SOIL

public static final Material SOIL

FURNACE

public static final Material FURNACE

BURNING_FURNACE

public static final Material BURNING_FURNACE

SIGN_POST

public static final Material SIGN_POST

WOODEN_DOOR

public static final Material WOODEN_DOOR

LADDER

public static final Material LADDER

RAILS

public static final Material RAILS

COBBLESTONE_STAIRS

public static final Material COBBLESTONE_STAIRS

WALL_SIGN

public static final Material WALL_SIGN

LEVER

public static final Material LEVER

STONE_PLATE

public static final Material STONE_PLATE

IRON_DOOR_BLOCK

public static final Material IRON_DOOR_BLOCK

WOOD_PLATE

public static final Material WOOD_PLATE

REDSTONE_ORE

public static final Material REDSTONE_ORE

GLOWING_REDSTONE_ORE

public static final Material GLOWING_REDSTONE_ORE

REDSTONE_TORCH_OFF

public static final Material REDSTONE_TORCH_OFF

REDSTONE_TORCH_ON

public static final Material REDSTONE_TORCH_ON

STONE_BUTTON

public static final Material STONE_BUTTON

SNOW

public static final Material SNOW

ICE

public static final Material ICE

SNOW_BLOCK

public static final Material SNOW_BLOCK

CACTUS

public static final Material CACTUS

CLAY

public static final Material CLAY

SUGAR_CANE_BLOCK

public static final Material SUGAR_CANE_BLOCK

JUKEBOX

public static final Material JUKEBOX

FENCE

public static final Material FENCE

PUMPKIN

public static final Material PUMPKIN

NETHERRACK

public static final Material NETHERRACK

SOUL_SAND

public static final Material SOUL_SAND

GLOWSTONE

public static final Material GLOWSTONE

PORTAL

public static final Material PORTAL

JACK_O_LANTERN

public static final Material JACK_O_LANTERN

CAKE_BLOCK

public static final Material CAKE_BLOCK

DIODE_BLOCK_OFF

public static final Material DIODE_BLOCK_OFF

DIODE_BLOCK_ON

public static final Material DIODE_BLOCK_ON

LOCKED_CHEST

public static final Material LOCKED_CHEST

TRAP_DOOR

public static final Material TRAP_DOOR

MONSTER_EGGS

public static final Material MONSTER_EGGS

SMOOTH_BRICK

public static final Material SMOOTH_BRICK

HUGE_MUSHROOM_1

public static final Material HUGE_MUSHROOM_1

HUGE_MUSHROOM_2

public static final Material HUGE_MUSHROOM_2

IRON_FENCE

public static final Material IRON_FENCE

THIN_GLASS

public static final Material THIN_GLASS

MELON_BLOCK

public static final Material MELON_BLOCK

PUMPKIN_STEM

public static final Material PUMPKIN_STEM

MELON_STEM

public static final Material MELON_STEM

VINE

public static final Material VINE

FENCE_GATE

public static final Material FENCE_GATE

BRICK_STAIRS

public static final Material BRICK_STAIRS

SMOOTH_STAIRS

public static final Material SMOOTH_STAIRS

MYCEL

public static final Material MYCEL

WATER_LILY

public static final Material WATER_LILY

NETHER_BRICK

public static final Material NETHER_BRICK

NETHER_FENCE

public static final Material NETHER_FENCE

NETHER_BRICK_STAIRS

public static final Material NETHER_BRICK_STAIRS

NETHER_WARTS

public static final Material NETHER_WARTS

ENCHANTMENT_TABLE

public static final Material ENCHANTMENT_TABLE

BREWING_STAND

public static final Material BREWING_STAND

CAULDRON

public static final Material CAULDRON

ENDER_PORTAL

public static final Material ENDER_PORTAL

ENDER_PORTAL_FRAME

public static final Material ENDER_PORTAL_FRAME

ENDER_STONE

public static final Material ENDER_STONE

DRAGON_EGG

public static final Material DRAGON_EGG

REDSTONE_LAMP_OFF

public static final Material REDSTONE_LAMP_OFF

REDSTONE_LAMP_ON

public static final Material REDSTONE_LAMP_ON

WOOD_DOUBLE_STEP

public static final Material WOOD_DOUBLE_STEP

WOOD_STEP

public static final Material WOOD_STEP

COCOA

public static final Material COCOA

SANDSTONE_STAIRS

public static final Material SANDSTONE_STAIRS

EMERALD_ORE

public static final Material EMERALD_ORE

ENDER_CHEST

public static final Material ENDER_CHEST

TRIPWIRE_HOOK

public static final Material TRIPWIRE_HOOK

TRIPWIRE

public static final Material TRIPWIRE

EMERALD_BLOCK

public static final Material EMERALD_BLOCK

SPRUCE_WOOD_STAIRS

public static final Material SPRUCE_WOOD_STAIRS

BIRCH_WOOD_STAIRS

public static final Material BIRCH_WOOD_STAIRS

JUNGLE_WOOD_STAIRS

public static final Material JUNGLE_WOOD_STAIRS

COMMAND

public static final Material COMMAND

BEACON

public static final Material BEACON

COBBLE_WALL

public static final Material COBBLE_WALL

FLOWER_POT

public static final Material FLOWER_POT

CARROT

public static final Material CARROT

POTATO

public static final Material POTATO

WOOD_BUTTON

public static final Material WOOD_BUTTON

SKULL

public static final Material SKULL

ANVIL

public static final Material ANVIL

TRAPPED_CHEST

public static final Material TRAPPED_CHEST

GOLD_PLATE

public static final Material GOLD_PLATE

IRON_PLATE

public static final Material IRON_PLATE

REDSTONE_COMPARATOR_OFF

public static final Material REDSTONE_COMPARATOR_OFF

REDSTONE_COMPARATOR_ON

public static final Material REDSTONE_COMPARATOR_ON

DAYLIGHT_DETECTOR

public static final Material DAYLIGHT_DETECTOR

REDSTONE_BLOCK

public static final Material REDSTONE_BLOCK

QUARTZ_ORE

public static final Material QUARTZ_ORE

HOPPER

public static final Material HOPPER

QUARTZ_BLOCK

public static final Material QUARTZ_BLOCK

QUARTZ_STAIRS

public static final Material QUARTZ_STAIRS

ACTIVATOR_RAIL

public static final Material ACTIVATOR_RAIL

DROPPER

public static final Material DROPPER

STAINED_CLAY

public static final Material STAINED_CLAY

HAY_BLOCK

public static final Material HAY_BLOCK

CARPET

public static final Material CARPET

HARD_CLAY

public static final Material HARD_CLAY

COAL_BLOCK

public static final Material COAL_BLOCK

IRON_SPADE

public static final Material IRON_SPADE

IRON_PICKAXE

public static final Material IRON_PICKAXE

IRON_AXE

public static final Material IRON_AXE

FLINT_AND_STEEL

public static final Material FLINT_AND_STEEL

APPLE

public static final Material APPLE

BOW

public static final Material BOW

ARROW

public static final Material ARROW

COAL

public static final Material COAL

DIAMOND

public static final Material DIAMOND

IRON_INGOT

public static final Material IRON_INGOT

GOLD_INGOT

public static final Material GOLD_INGOT

IRON_SWORD

public static final Material IRON_SWORD

WOOD_SWORD

public static final Material WOOD_SWORD

WOOD_SPADE

public static final Material WOOD_SPADE

WOOD_PICKAXE

public static final Material WOOD_PICKAXE

WOOD_AXE

public static final Material WOOD_AXE

STONE_SWORD

public static final Material STONE_SWORD

STONE_SPADE

public static final Material STONE_SPADE

STONE_PICKAXE

public static final Material STONE_PICKAXE

STONE_AXE

public static final Material STONE_AXE

DIAMOND_SWORD

public static final Material DIAMOND_SWORD

DIAMOND_SPADE

public static final Material DIAMOND_SPADE

DIAMOND_PICKAXE

public static final Material DIAMOND_PICKAXE

DIAMOND_AXE

public static final Material DIAMOND_AXE

STICK

public static final Material STICK

BOWL

public static final Material BOWL

MUSHROOM_SOUP

public static final Material MUSHROOM_SOUP

GOLD_SWORD

public static final Material GOLD_SWORD

GOLD_SPADE

public static final Material GOLD_SPADE

GOLD_PICKAXE

public static final Material GOLD_PICKAXE

GOLD_AXE

public static final Material GOLD_AXE

STRING

public static final Material STRING

FEATHER

public static final Material FEATHER

SULPHUR

public static final Material SULPHUR

WOOD_HOE

public static final Material WOOD_HOE

STONE_HOE

public static final Material STONE_HOE

IRON_HOE

public static final Material IRON_HOE

DIAMOND_HOE

public static final Material DIAMOND_HOE

GOLD_HOE

public static final Material GOLD_HOE

SEEDS

public static final Material SEEDS

WHEAT

public static final Material WHEAT

BREAD

public static final Material BREAD

LEATHER_HELMET

public static final Material LEATHER_HELMET

LEATHER_CHESTPLATE

public static final Material LEATHER_CHESTPLATE

LEATHER_LEGGINGS

public static final Material LEATHER_LEGGINGS

LEATHER_BOOTS

public static final Material LEATHER_BOOTS

CHAINMAIL_HELMET

public static final Material CHAINMAIL_HELMET

CHAINMAIL_CHESTPLATE

public static final Material CHAINMAIL_CHESTPLATE

CHAINMAIL_LEGGINGS

public static final Material CHAINMAIL_LEGGINGS

CHAINMAIL_BOOTS

public static final Material CHAINMAIL_BOOTS

IRON_HELMET

public static final Material IRON_HELMET

IRON_CHESTPLATE

public static final Material IRON_CHESTPLATE

IRON_LEGGINGS

public static final Material IRON_LEGGINGS

IRON_BOOTS

public static final Material IRON_BOOTS

DIAMOND_HELMET

public static final Material DIAMOND_HELMET

DIAMOND_CHESTPLATE

public static final Material DIAMOND_CHESTPLATE

DIAMOND_LEGGINGS

public static final Material DIAMOND_LEGGINGS

DIAMOND_BOOTS

public static final Material DIAMOND_BOOTS

GOLD_HELMET

public static final Material GOLD_HELMET

GOLD_CHESTPLATE

public static final Material GOLD_CHESTPLATE

GOLD_LEGGINGS

public static final Material GOLD_LEGGINGS

GOLD_BOOTS

public static final Material GOLD_BOOTS

FLINT

public static final Material FLINT

PORK

public static final Material PORK

GRILLED_PORK

public static final Material GRILLED_PORK

PAINTING

public static final Material PAINTING

GOLDEN_APPLE

public static final Material GOLDEN_APPLE

SIGN

public static final Material SIGN

WOOD_DOOR

public static final Material WOOD_DOOR

BUCKET

public static final Material BUCKET

WATER_BUCKET

public static final Material WATER_BUCKET

LAVA_BUCKET

public static final Material LAVA_BUCKET

MINECART

public static final Material MINECART

SADDLE

public static final Material SADDLE

IRON_DOOR

public static final Material IRON_DOOR

REDSTONE

public static final Material REDSTONE

SNOW_BALL

public static final Material SNOW_BALL

BOAT

public static final Material BOAT

LEATHER

public static final Material LEATHER

MILK_BUCKET

public static final Material MILK_BUCKET

CLAY_BRICK

public static final Material CLAY_BRICK

CLAY_BALL

public static final Material CLAY_BALL

SUGAR_CANE

public static final Material SUGAR_CANE

PAPER

public static final Material PAPER

BOOK

public static final Material BOOK

SLIME_BALL

public static final Material SLIME_BALL

STORAGE_MINECART

public static final Material STORAGE_MINECART

POWERED_MINECART

public static final Material POWERED_MINECART

EGG

public static final Material EGG

COMPASS

public static final Material COMPASS

FISHING_ROD

public static final Material FISHING_ROD

WATCH

public static final Material WATCH

GLOWSTONE_DUST

public static final Material GLOWSTONE_DUST

RAW_FISH

public static final Material RAW_FISH

COOKED_FISH

public static final Material COOKED_FISH

INK_SACK

public static final Material INK_SACK

BONE

public static final Material BONE

SUGAR

public static final Material SUGAR

CAKE

public static final Material CAKE

BED

public static final Material BED

DIODE

public static final Material DIODE

COOKIE

public static final Material COOKIE

MAP

public static final Material MAP
See Also:
MapView

SHEARS

public static final Material SHEARS

MELON

public static final Material MELON

PUMPKIN_SEEDS

public static final Material PUMPKIN_SEEDS

MELON_SEEDS

public static final Material MELON_SEEDS

RAW_BEEF

public static final Material RAW_BEEF

COOKED_BEEF

public static final Material COOKED_BEEF

RAW_CHICKEN

public static final Material RAW_CHICKEN

COOKED_CHICKEN

public static final Material COOKED_CHICKEN

ROTTEN_FLESH

public static final Material ROTTEN_FLESH

ENDER_PEARL

public static final Material ENDER_PEARL

BLAZE_ROD

public static final Material BLAZE_ROD

GHAST_TEAR

public static final Material GHAST_TEAR

GOLD_NUGGET

public static final Material GOLD_NUGGET

NETHER_STALK

public static final Material NETHER_STALK

POTION

public static final Material POTION
See Also:
Potion

GLASS_BOTTLE

public static final Material GLASS_BOTTLE

SPIDER_EYE

public static final Material SPIDER_EYE

FERMENTED_SPIDER_EYE

public static final Material FERMENTED_SPIDER_EYE

BLAZE_POWDER

public static final Material BLAZE_POWDER

MAGMA_CREAM

public static final Material MAGMA_CREAM

BREWING_STAND_ITEM

public static final Material BREWING_STAND_ITEM

CAULDRON_ITEM

public static final Material CAULDRON_ITEM

EYE_OF_ENDER

public static final Material EYE_OF_ENDER

SPECKLED_MELON

public static final Material SPECKLED_MELON

MONSTER_EGG

public static final Material MONSTER_EGG

EXP_BOTTLE

public static final Material EXP_BOTTLE

FIREBALL

public static final Material FIREBALL

BOOK_AND_QUILL

public static final Material BOOK_AND_QUILL

WRITTEN_BOOK

public static final Material WRITTEN_BOOK

EMERALD

public static final Material EMERALD

ITEM_FRAME

public static final Material ITEM_FRAME

FLOWER_POT_ITEM

public static final Material FLOWER_POT_ITEM

CARROT_ITEM

public static final Material CARROT_ITEM

POTATO_ITEM

public static final Material POTATO_ITEM

BAKED_POTATO

public static final Material BAKED_POTATO

POISONOUS_POTATO

public static final Material POISONOUS_POTATO

EMPTY_MAP

public static final Material EMPTY_MAP

GOLDEN_CARROT

public static final Material GOLDEN_CARROT

SKULL_ITEM

public static final Material SKULL_ITEM

CARROT_STICK

public static final Material CARROT_STICK

NETHER_STAR

public static final Material NETHER_STAR

PUMPKIN_PIE

public static final Material PUMPKIN_PIE

FIREWORK

public static final Material FIREWORK

FIREWORK_CHARGE

public static final Material FIREWORK_CHARGE

ENCHANTED_BOOK

public static final Material ENCHANTED_BOOK

REDSTONE_COMPARATOR

public static final Material REDSTONE_COMPARATOR

NETHER_BRICK_ITEM

public static final Material NETHER_BRICK_ITEM

QUARTZ

public static final Material QUARTZ

EXPLOSIVE_MINECART

public static final Material EXPLOSIVE_MINECART

HOPPER_MINECART

public static final Material HOPPER_MINECART

IRON_BARDING

public static final Material IRON_BARDING

GOLD_BARDING

public static final Material GOLD_BARDING

DIAMOND_BARDING

public static final Material DIAMOND_BARDING

LEASH

public static final Material LEASH

NAME_TAG

public static final Material NAME_TAG

GOLD_RECORD

public static final Material GOLD_RECORD

GREEN_RECORD

public static final Material GREEN_RECORD

RECORD_3

public static final Material RECORD_3

RECORD_4

public static final Material RECORD_4

RECORD_5

public static final Material RECORD_5

RECORD_6

public static final Material RECORD_6

RECORD_7

public static final Material RECORD_7

RECORD_8

public static final Material RECORD_8

RECORD_9

public static final Material RECORD_9

RECORD_10

public static final Material RECORD_10

RECORD_11

public static final Material RECORD_11

RECORD_12

public static final Material RECORD_12
Method Detail

values

public static Material[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Material c : Material.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Material valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getId

@Deprecated
public int getId()
Deprecated. Magic value

Gets the item ID or block ID of this Material

Returns:
ID of this material

getMaxStackSize

public int getMaxStackSize()
Gets the maximum amount of this material that can be held in a stack

Returns:
Maximum stack size for this material

getMaxDurability

public short getMaxDurability()
Gets the maximum durability of this material

Returns:
Maximum durability for this material

getData

public Class<? extends MaterialData> getData()
Gets the MaterialData class associated with this Material

Returns:
MaterialData associated with this Material

getNewData

@Deprecated
public MaterialData getNewData(byte raw)
Deprecated. Magic value

Constructs a new MaterialData relevant for this Material, with the given initial data

Parameters:
raw - Initial data to construct the MaterialData with
Returns:
New MaterialData with the given data

isBlock

public boolean isBlock()
Checks if this Material is a placable block

Returns:
true if this material is a block

isEdible

public boolean isEdible()
Checks if this Material is edible.

Returns:
true if this Material is edible.

getMaterial

@Deprecated
public static Material getMaterial(int id)
Deprecated. Magic value

Attempts to get the Material with the given ID

Parameters:
id - ID of the material to get
Returns:
Material if found, or null

getMaterial

public static Material getMaterial(String name)
Attempts to get the Material with the given name. This is a normal lookup, names must be the precise name they are given in the enum.

Parameters:
name - Name of the material to get
Returns:
Material if found, or null

matchMaterial

public static Material matchMaterial(String name)
Attempts to match the Material with the given name. This is a match lookup; names will be converted to uppercase, then stripped of special characters in an attempt to format it like the enum.

Using this for match by ID is deprecated.

Parameters:
name - Name of the material to get
Returns:
Material if found, or null

isRecord

public boolean isRecord()
Returns:
True if this material represents a playable music disk.

isSolid

public boolean isSolid()
Check if the material is a block and solid (cannot be passed through by a player)

Returns:
True if this material is a block and solid

isTransparent

public boolean isTransparent()
Check if the material is a block and does not block any light

Returns:
True if this material is a block and does not block any light

isFlammable

public boolean isFlammable()
Check if the material is a block and can catch fire

Returns:
True if this material is a block and can catch fire

isBurnable

public boolean isBurnable()
Check if the material is a block and can burn away

Returns:
True if this material is a block and can burn away

isOccluding

public boolean isOccluding()
Check if the material is a block and completely blocks vision

Returns:
True if this material is a block and completely blocks vision

hasGravity

public boolean hasGravity()
Returns:
True if this material is affected by gravity.


Copyright © 2014. All rights reserved.