|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Material> org.bukkit.Material
public enum Material
An enum of all material IDs accepted by the official server and client
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 |
---|
public static final Material AIR
public static final Material STONE
public static final Material GRASS
public static final Material DIRT
public static final Material COBBLESTONE
public static final Material WOOD
public static final Material SAPLING
public static final Material BEDROCK
public static final Material WATER
public static final Material STATIONARY_WATER
public static final Material LAVA
public static final Material STATIONARY_LAVA
public static final Material SAND
public static final Material GRAVEL
public static final Material GOLD_ORE
public static final Material IRON_ORE
public static final Material COAL_ORE
public static final Material LOG
public static final Material LEAVES
public static final Material SPONGE
public static final Material GLASS
public static final Material LAPIS_ORE
public static final Material LAPIS_BLOCK
public static final Material DISPENSER
public static final Material SANDSTONE
public static final Material NOTE_BLOCK
public static final Material BED_BLOCK
public static final Material POWERED_RAIL
public static final Material DETECTOR_RAIL
public static final Material PISTON_STICKY_BASE
public static final Material WEB
public static final Material LONG_GRASS
public static final Material DEAD_BUSH
public static final Material PISTON_BASE
public static final Material PISTON_EXTENSION
public static final Material WOOL
public static final Material PISTON_MOVING_PIECE
public static final Material YELLOW_FLOWER
public static final Material RED_ROSE
public static final Material BROWN_MUSHROOM
public static final Material RED_MUSHROOM
public static final Material GOLD_BLOCK
public static final Material IRON_BLOCK
public static final Material DOUBLE_STEP
public static final Material STEP
public static final Material BRICK
public static final Material TNT
public static final Material BOOKSHELF
public static final Material MOSSY_COBBLESTONE
public static final Material OBSIDIAN
public static final Material TORCH
public static final Material FIRE
public static final Material MOB_SPAWNER
public static final Material WOOD_STAIRS
public static final Material CHEST
public static final Material REDSTONE_WIRE
public static final Material DIAMOND_ORE
public static final Material DIAMOND_BLOCK
public static final Material WORKBENCH
public static final Material CROPS
public static final Material SOIL
public static final Material FURNACE
public static final Material BURNING_FURNACE
public static final Material SIGN_POST
public static final Material WOODEN_DOOR
public static final Material LADDER
public static final Material RAILS
public static final Material COBBLESTONE_STAIRS
public static final Material WALL_SIGN
public static final Material LEVER
public static final Material STONE_PLATE
public static final Material IRON_DOOR_BLOCK
public static final Material WOOD_PLATE
public static final Material REDSTONE_ORE
public static final Material GLOWING_REDSTONE_ORE
public static final Material REDSTONE_TORCH_OFF
public static final Material REDSTONE_TORCH_ON
public static final Material STONE_BUTTON
public static final Material SNOW
public static final Material ICE
public static final Material SNOW_BLOCK
public static final Material CACTUS
public static final Material CLAY
public static final Material SUGAR_CANE_BLOCK
public static final Material JUKEBOX
public static final Material FENCE
public static final Material PUMPKIN
public static final Material NETHERRACK
public static final Material SOUL_SAND
public static final Material GLOWSTONE
public static final Material PORTAL
public static final Material JACK_O_LANTERN
public static final Material CAKE_BLOCK
public static final Material DIODE_BLOCK_OFF
public static final Material DIODE_BLOCK_ON
@Deprecated public static final Material LOCKED_CHEST
public static final Material STAINED_GLASS
public static final Material TRAP_DOOR
public static final Material MONSTER_EGGS
public static final Material SMOOTH_BRICK
public static final Material HUGE_MUSHROOM_1
public static final Material HUGE_MUSHROOM_2
public static final Material IRON_FENCE
public static final Material THIN_GLASS
public static final Material MELON_BLOCK
public static final Material PUMPKIN_STEM
public static final Material MELON_STEM
public static final Material VINE
public static final Material FENCE_GATE
public static final Material BRICK_STAIRS
public static final Material SMOOTH_STAIRS
public static final Material MYCEL
public static final Material WATER_LILY
public static final Material NETHER_BRICK
public static final Material NETHER_FENCE
public static final Material NETHER_BRICK_STAIRS
public static final Material NETHER_WARTS
public static final Material ENCHANTMENT_TABLE
public static final Material BREWING_STAND
public static final Material CAULDRON
public static final Material ENDER_PORTAL
public static final Material ENDER_PORTAL_FRAME
public static final Material ENDER_STONE
public static final Material DRAGON_EGG
public static final Material REDSTONE_LAMP_OFF
public static final Material REDSTONE_LAMP_ON
public static final Material WOOD_DOUBLE_STEP
public static final Material WOOD_STEP
public static final Material COCOA
public static final Material SANDSTONE_STAIRS
public static final Material EMERALD_ORE
public static final Material ENDER_CHEST
public static final Material TRIPWIRE_HOOK
public static final Material TRIPWIRE
public static final Material EMERALD_BLOCK
public static final Material SPRUCE_WOOD_STAIRS
public static final Material BIRCH_WOOD_STAIRS
public static final Material JUNGLE_WOOD_STAIRS
public static final Material COMMAND
public static final Material BEACON
public static final Material COBBLE_WALL
public static final Material FLOWER_POT
public static final Material CARROT
public static final Material POTATO
public static final Material WOOD_BUTTON
public static final Material SKULL
public static final Material ANVIL
public static final Material TRAPPED_CHEST
public static final Material GOLD_PLATE
public static final Material IRON_PLATE
public static final Material REDSTONE_COMPARATOR_OFF
public static final Material REDSTONE_COMPARATOR_ON
public static final Material DAYLIGHT_DETECTOR
public static final Material REDSTONE_BLOCK
public static final Material QUARTZ_ORE
public static final Material HOPPER
public static final Material QUARTZ_BLOCK
public static final Material QUARTZ_STAIRS
public static final Material ACTIVATOR_RAIL
public static final Material DROPPER
public static final Material STAINED_CLAY
public static final Material STAINED_GLASS_PANE
public static final Material LEAVES_2
public static final Material LOG_2
public static final Material ACACIA_STAIRS
public static final Material DARK_OAK_STAIRS
public static final Material HAY_BLOCK
public static final Material CARPET
public static final Material HARD_CLAY
public static final Material COAL_BLOCK
public static final Material PACKED_ICE
public static final Material DOUBLE_PLANT
public static final Material IRON_SPADE
public static final Material IRON_PICKAXE
public static final Material IRON_AXE
public static final Material FLINT_AND_STEEL
public static final Material APPLE
public static final Material BOW
public static final Material ARROW
public static final Material COAL
public static final Material DIAMOND
public static final Material IRON_INGOT
public static final Material GOLD_INGOT
public static final Material IRON_SWORD
public static final Material WOOD_SWORD
public static final Material WOOD_SPADE
public static final Material WOOD_PICKAXE
public static final Material WOOD_AXE
public static final Material STONE_SWORD
public static final Material STONE_SPADE
public static final Material STONE_PICKAXE
public static final Material STONE_AXE
public static final Material DIAMOND_SWORD
public static final Material DIAMOND_SPADE
public static final Material DIAMOND_PICKAXE
public static final Material DIAMOND_AXE
public static final Material STICK
public static final Material BOWL
public static final Material MUSHROOM_SOUP
public static final Material GOLD_SWORD
public static final Material GOLD_SPADE
public static final Material GOLD_PICKAXE
public static final Material GOLD_AXE
public static final Material STRING
public static final Material FEATHER
public static final Material SULPHUR
public static final Material WOOD_HOE
public static final Material STONE_HOE
public static final Material IRON_HOE
public static final Material DIAMOND_HOE
public static final Material GOLD_HOE
public static final Material SEEDS
public static final Material WHEAT
public static final Material BREAD
public static final Material LEATHER_HELMET
public static final Material LEATHER_CHESTPLATE
public static final Material LEATHER_LEGGINGS
public static final Material LEATHER_BOOTS
public static final Material CHAINMAIL_HELMET
public static final Material CHAINMAIL_CHESTPLATE
public static final Material CHAINMAIL_LEGGINGS
public static final Material CHAINMAIL_BOOTS
public static final Material IRON_HELMET
public static final Material IRON_CHESTPLATE
public static final Material IRON_LEGGINGS
public static final Material IRON_BOOTS
public static final Material DIAMOND_HELMET
public static final Material DIAMOND_CHESTPLATE
public static final Material DIAMOND_LEGGINGS
public static final Material DIAMOND_BOOTS
public static final Material GOLD_HELMET
public static final Material GOLD_CHESTPLATE
public static final Material GOLD_LEGGINGS
public static final Material GOLD_BOOTS
public static final Material FLINT
public static final Material PORK
public static final Material GRILLED_PORK
public static final Material PAINTING
public static final Material GOLDEN_APPLE
public static final Material SIGN
public static final Material WOOD_DOOR
public static final Material BUCKET
public static final Material WATER_BUCKET
public static final Material LAVA_BUCKET
public static final Material MINECART
public static final Material SADDLE
public static final Material IRON_DOOR
public static final Material REDSTONE
public static final Material SNOW_BALL
public static final Material BOAT
public static final Material LEATHER
public static final Material MILK_BUCKET
public static final Material CLAY_BRICK
public static final Material CLAY_BALL
public static final Material SUGAR_CANE
public static final Material PAPER
public static final Material BOOK
public static final Material SLIME_BALL
public static final Material STORAGE_MINECART
public static final Material POWERED_MINECART
public static final Material EGG
public static final Material COMPASS
public static final Material FISHING_ROD
public static final Material WATCH
public static final Material GLOWSTONE_DUST
public static final Material RAW_FISH
public static final Material COOKED_FISH
public static final Material INK_SACK
public static final Material BONE
public static final Material SUGAR
public static final Material CAKE
public static final Material BED
public static final Material DIODE
public static final Material COOKIE
public static final Material MAP
MapView
public static final Material SHEARS
public static final Material MELON
public static final Material PUMPKIN_SEEDS
public static final Material MELON_SEEDS
public static final Material RAW_BEEF
public static final Material COOKED_BEEF
public static final Material RAW_CHICKEN
public static final Material COOKED_CHICKEN
public static final Material ROTTEN_FLESH
public static final Material ENDER_PEARL
public static final Material BLAZE_ROD
public static final Material GHAST_TEAR
public static final Material GOLD_NUGGET
public static final Material NETHER_STALK
public static final Material POTION
Potion
public static final Material GLASS_BOTTLE
public static final Material SPIDER_EYE
public static final Material FERMENTED_SPIDER_EYE
public static final Material BLAZE_POWDER
public static final Material MAGMA_CREAM
public static final Material BREWING_STAND_ITEM
public static final Material CAULDRON_ITEM
public static final Material EYE_OF_ENDER
public static final Material SPECKLED_MELON
public static final Material MONSTER_EGG
public static final Material EXP_BOTTLE
public static final Material FIREBALL
public static final Material BOOK_AND_QUILL
public static final Material WRITTEN_BOOK
public static final Material EMERALD
public static final Material ITEM_FRAME
public static final Material FLOWER_POT_ITEM
public static final Material CARROT_ITEM
public static final Material POTATO_ITEM
public static final Material BAKED_POTATO
public static final Material POISONOUS_POTATO
public static final Material EMPTY_MAP
public static final Material GOLDEN_CARROT
public static final Material SKULL_ITEM
public static final Material CARROT_STICK
public static final Material NETHER_STAR
public static final Material PUMPKIN_PIE
public static final Material FIREWORK
public static final Material FIREWORK_CHARGE
public static final Material ENCHANTED_BOOK
public static final Material REDSTONE_COMPARATOR
public static final Material NETHER_BRICK_ITEM
public static final Material QUARTZ
public static final Material EXPLOSIVE_MINECART
public static final Material HOPPER_MINECART
public static final Material IRON_BARDING
public static final Material GOLD_BARDING
public static final Material DIAMOND_BARDING
public static final Material LEASH
public static final Material NAME_TAG
public static final Material COMMAND_MINECART
public static final Material GOLD_RECORD
public static final Material GREEN_RECORD
public static final Material RECORD_3
public static final Material RECORD_4
public static final Material RECORD_5
public static final Material RECORD_6
public static final Material RECORD_7
public static final Material RECORD_8
public static final Material RECORD_9
public static final Material RECORD_10
public static final Material RECORD_11
public static final Material RECORD_12
Method Detail |
---|
public static Material[] values()
for (Material c : Material.values()) System.out.println(c);
public static Material valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null@Deprecated public int getId()
public int getMaxStackSize()
public short getMaxDurability()
public Class<? extends MaterialData> getData()
@Deprecated public MaterialData getNewData(byte raw)
raw
- Initial data to construct the MaterialData with
public boolean isBlock()
public boolean isEdible()
@Deprecated public static Material getMaterial(int id)
id
- ID of the material to get
public static Material getMaterial(String name)
This is a normal lookup, names must be the precise name they are given in the enum.
name
- Name of the material to get
public static Material matchMaterial(String 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.
name
- Name of the material to get
public boolean isRecord()
public boolean isSolid()
public boolean isTransparent()
public boolean isFlammable()
public boolean isBurnable()
public boolean isOccluding()
public boolean hasGravity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |