Modifier and Type | Method | Description |
---|---|---|
java.lang.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(java.lang.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 |
isFuel() |
Checks if this Material can be used as fuel in a Furnace
|
boolean |
isItem() |
Checks if this Material is an obtainable item.
|
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 (can be built upon)
|
boolean |
isTransparent() |
Check if the material is a block and does not block any light
|
static Material |
matchMaterial(java.lang.String name) |
Attempts to match the Material with the given name.
|
static Material |
valueOf(java.lang.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.
|
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
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 SLIME_BLOCK
public static final Material BARRIER
public static final Material IRON_TRAPDOOR
public static final Material PRISMARINE
public static final Material SEA_LANTERN
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 STANDING_BANNER
public static final Material WALL_BANNER
public static final Material DAYLIGHT_DETECTOR_INVERTED
public static final Material RED_SANDSTONE
public static final Material RED_SANDSTONE_STAIRS
public static final Material DOUBLE_STONE_SLAB2
public static final Material STONE_SLAB2
public static final Material SPRUCE_FENCE_GATE
public static final Material BIRCH_FENCE_GATE
public static final Material JUNGLE_FENCE_GATE
public static final Material DARK_OAK_FENCE_GATE
public static final Material ACACIA_FENCE_GATE
public static final Material SPRUCE_FENCE
public static final Material BIRCH_FENCE
public static final Material JUNGLE_FENCE
public static final Material DARK_OAK_FENCE
public static final Material ACACIA_FENCE
public static final Material SPRUCE_DOOR
public static final Material BIRCH_DOOR
public static final Material JUNGLE_DOOR
public static final Material ACACIA_DOOR
public static final Material DARK_OAK_DOOR
public static final Material END_ROD
public static final Material CHORUS_PLANT
public static final Material CHORUS_FLOWER
public static final Material PURPUR_BLOCK
public static final Material PURPUR_PILLAR
public static final Material PURPUR_STAIRS
public static final Material PURPUR_DOUBLE_SLAB
public static final Material PURPUR_SLAB
public static final Material END_BRICKS
public static final Material BEETROOT_BLOCK
public static final Material GRASS_PATH
public static final Material END_GATEWAY
public static final Material COMMAND_REPEATING
public static final Material COMMAND_CHAIN
public static final Material FROSTED_ICE
public static final Material MAGMA
public static final Material NETHER_WART_BLOCK
public static final Material RED_NETHER_BRICK
public static final Material BONE_BLOCK
public static final Material STRUCTURE_VOID
public static final Material OBSERVER
public static final Material WHITE_SHULKER_BOX
public static final Material ORANGE_SHULKER_BOX
public static final Material MAGENTA_SHULKER_BOX
public static final Material LIGHT_BLUE_SHULKER_BOX
public static final Material YELLOW_SHULKER_BOX
public static final Material LIME_SHULKER_BOX
public static final Material PINK_SHULKER_BOX
public static final Material GRAY_SHULKER_BOX
public static final Material SILVER_SHULKER_BOX
public static final Material CYAN_SHULKER_BOX
public static final Material PURPLE_SHULKER_BOX
public static final Material BLUE_SHULKER_BOX
public static final Material BROWN_SHULKER_BOX
public static final Material GREEN_SHULKER_BOX
public static final Material RED_SHULKER_BOX
public static final Material BLACK_SHULKER_BOX
public static final Material WHITE_GLAZED_TERRACOTTA
public static final Material ORANGE_GLAZED_TERRACOTTA
public static final Material MAGENTA_GLAZED_TERRACOTTA
public static final Material LIGHT_BLUE_GLAZED_TERRACOTTA
public static final Material YELLOW_GLAZED_TERRACOTTA
public static final Material LIME_GLAZED_TERRACOTTA
public static final Material PINK_GLAZED_TERRACOTTA
public static final Material GRAY_GLAZED_TERRACOTTA
public static final Material SILVER_GLAZED_TERRACOTTA
public static final Material CYAN_GLAZED_TERRACOTTA
public static final Material PURPLE_GLAZED_TERRACOTTA
public static final Material BLUE_GLAZED_TERRACOTTA
public static final Material BROWN_GLAZED_TERRACOTTA
public static final Material GREEN_GLAZED_TERRACOTTA
public static final Material RED_GLAZED_TERRACOTTA
public static final Material BLACK_GLAZED_TERRACOTTA
public static final Material CONCRETE
public static final Material CONCRETE_POWDER
public static final Material STRUCTURE_BLOCK
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 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
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 PRISMARINE_SHARD
public static final Material PRISMARINE_CRYSTALS
public static final Material RABBIT
public static final Material COOKED_RABBIT
public static final Material RABBIT_STEW
public static final Material RABBIT_FOOT
public static final Material RABBIT_HIDE
public static final Material ARMOR_STAND
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 MUTTON
public static final Material COOKED_MUTTON
public static final Material BANNER
public static final Material END_CRYSTAL
public static final Material SPRUCE_DOOR_ITEM
public static final Material BIRCH_DOOR_ITEM
public static final Material JUNGLE_DOOR_ITEM
public static final Material ACACIA_DOOR_ITEM
public static final Material DARK_OAK_DOOR_ITEM
public static final Material CHORUS_FRUIT
public static final Material CHORUS_FRUIT_POPPED
public static final Material BEETROOT
public static final Material BEETROOT_SEEDS
public static final Material BEETROOT_SOUP
public static final Material DRAGONS_BREATH
public static final Material SPLASH_POTION
public static final Material SPECTRAL_ARROW
public static final Material TIPPED_ARROW
public static final Material LINGERING_POTION
public static final Material SHIELD
public static final Material ELYTRA
public static final Material BOAT_SPRUCE
public static final Material BOAT_BIRCH
public static final Material BOAT_JUNGLE
public static final Material BOAT_ACACIA
public static final Material BOAT_DARK_OAK
public static final Material TOTEM
public static final Material SHULKER_SHELL
public static final Material IRON_NUGGET
public static final Material KNOWLEDGE_BOOK
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
public static Material[] values()
for (Material c : Material.values()) System.out.println(c);
public static Material valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public int getId()
public int getMaxStackSize()
public short getMaxDurability()
public java.lang.Class<? extends MaterialData> getData()
@Deprecated public MaterialData getNewData(byte raw)
raw
- Initial data to construct the MaterialData withpublic boolean isBlock()
public boolean isEdible()
@Deprecated public static Material getMaterial(int id)
id
- ID of the material to getpublic static Material getMaterial(java.lang.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 getpublic static Material matchMaterial(java.lang.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 getpublic boolean isRecord()
public boolean isSolid()
public boolean isTransparent()
public boolean isFlammable()
public boolean isBurnable()
public boolean isFuel()
public boolean isOccluding()
public boolean hasGravity()
public boolean isItem()
Copyright © 2018. All rights reserved.