Enum Class XMaterial
- All Implemented Interfaces:
Serializable
,Comparable<XMaterial>
,Constable
1.13 and above as priority.
This class is mainly designed to support ItemStack
. If you want to use it on blocks, you'll have to use
XBlock
Pre-flattening: https://minecraft.gamepedia.com/Java_Edition_data_values/Pre-flattening Materials: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html Materials (1.12): https://helpch.at/docs/1.12.2/index.html?org/bukkit/Material.html Material IDs: https://minecraft-ids.grahamedgecombe.com/ Material Source Code: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/Material.java XMaterial v1: https://www.spigotmc.org/threads/329630/
This class will throw a "unsupported material" error if someone tries to use an item with an invalid data value which can only happen in 1.12 servers and below or when the
utility is missing a new material in that specific version.
To get an invalid item, (aka Missing Texture Block) you can use the command
/give @p minecraft:dirt 1 10 where 1 is the item amount, and 10 is the data value. The material DIRT
with a data value of 10
doesn't exist.
- Version:
- 11.0.0
- Author:
- Crypto Morin
- See Also:
Material
,ItemStack
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionhttps://minecraft.gamepedia.com/AirMaterial.isAir()
Beetroot is a known material in pre-1.13Version 1.12+ interprets "BED" as BLACK_BED due to enum alphabetic ordering.1.13 tag is not added because it's the same thing asAIR
Unlike redstone torch and redstone lamp...Changed in 1.17For some reasons filled map items are really special.This special material cannot be obtained as an item.1.13 renamed to CACTUS_GREEN 1.14 renamed to GREEN_DYEWe will only add "INK_SAC" forBLACK_DYE
since it's the only material (linked with this material) that is added after 1.13, which means it can use both INK_SACK and INK_SAC.Renamed to SILVER_GLAZED_TERRACOTTA in 1.12 Renamed to LIGHT_GRAY_GLAZED_TERRACOTTA in 1.14Adding this to the duplicated list will give you a filled map for 1.13+ versions and removing it from duplicated list will still give you a filled map in -1.12 versions.Just like mentioned in https://minecraft.gamepedia.com/Nether_Wart Nether wart is also known as nether stalk in the code.Data value 14 or 0Unlike redstone torch, REDSTONE_LAMP_ON isn't an item.REDSTONE_TORCH_OFF isn't an item, but a block.Originally developers used barrier blocks for its purpose.Sugar Cane is a known material in pre-1.131.13 tag is not added because it's the same thing asAIR
This is used for blocks only.Wheat is a known material in pre-1.13 -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
Attempts to build the string like an enum name.byte
getData()
The data value of this material pre-flattening.int
getId()
Gets the ID (Magic value) of the material.String[]
static int
The current version of the server.static boolean
Deprecated.static boolean
Deprecated.Use!XMaterial.supports(9)
instead.boolean
isOneOf(Collection<String> materials)
Checks if the list of given material names matches the given base material.boolean
isSimilar(org.bukkit.inventory.ItemStack item)
Checks if an item has the same material (and data value on older versions).boolean
Checks if this material is supported in the current version.matchDefinedXMaterial(String name, byte data)
The main method that parses the given material name and data value as an XMaterial.matchXMaterial(int id, byte data)
Deprecated.this method loops through all the available materials and matches their ID usinggetId()
which takes a really long time.matchXMaterial(String name)
Parses the given material name as an XMaterial with a given data value in the string if attached.static XMaterial
matchXMaterial(org.bukkit.inventory.ItemStack item)
Parses the given item as an XMaterial using its material and data value (durability) if not a damageable itemItemStack.getDurability()
.static XMaterial
matchXMaterial(org.bukkit.Material material)
Parses the given material as an XMaterial.org.bukkit.inventory.ItemStack
Parses an item from this XMaterial.org.bukkit.Material
Parses the material of this XMaterial.org.bukkit.inventory.ItemStack
setType(org.bukkit.inventory.ItemStack item)
Sets theMaterial
(and data value on older versions) of an item.static boolean
supports(int version)
Checks if the specified version is the same version or higher than the current server version.toString()
Parses an enum name to a user-friendly name.static XMaterial
Returns the enum constant of this class with the specified name.static XMaterial[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACACIA_BOAT
-
ACACIA_BUTTON
-
ACACIA_CHEST_BOAT
-
ACACIA_DOOR
-
ACACIA_FENCE
-
ACACIA_FENCE_GATE
-
ACACIA_LEAVES
-
ACACIA_LOG
-
ACACIA_PLANKS
-
ACACIA_PRESSURE_PLATE
-
ACACIA_SAPLING
-
ACACIA_SIGN
-
ACACIA_SLAB
-
ACACIA_STAIRS
-
ACACIA_TRAPDOOR
-
ACACIA_WALL_SIGN
-
ACACIA_WOOD
-
ACTIVATOR_RAIL
-
AIR
https://minecraft.gamepedia.com/AirMaterial.isAir()
-
ALLAY_SPAWN_EGG
-
ALLIUM
-
AMETHYST_BLOCK
-
AMETHYST_CLUSTER
-
AMETHYST_SHARD
-
ANCIENT_DEBRIS
-
ANDESITE
-
ANDESITE_SLAB
-
ANDESITE_STAIRS
-
ANDESITE_WALL
-
ANVIL
-
APPLE
-
ARMOR_STAND
-
ARROW
-
ATTACHED_MELON_STEM
-
ATTACHED_PUMPKIN_STEM
-
AXOLOTL_BUCKET
-
AXOLOTL_SPAWN_EGG
-
AZALEA
-
AZALEA_LEAVES
-
AZURE_BLUET
-
BAKED_POTATO
-
BAMBOO
-
BAMBOO_SAPLING
-
BARREL
-
BARRIER
-
BASALT
-
BAT_SPAWN_EGG
-
BEACON
-
BEDROCK
-
BEEF
-
BEEHIVE
-
BEETROOT
Beetroot is a known material in pre-1.13 -
BEETROOTS
-
BEETROOT_SEEDS
-
BEETROOT_SOUP
-
BEE_NEST
-
BEE_SPAWN_EGG
-
BELL
-
BIG_DRIPLEAF
-
BIG_DRIPLEAF_STEM
-
BIRCH_BOAT
-
BIRCH_BUTTON
-
BIRCH_CHEST_BOAT
-
BIRCH_DOOR
-
BIRCH_FENCE
-
BIRCH_FENCE_GATE
-
BIRCH_LEAVES
-
BIRCH_LOG
-
BIRCH_PLANKS
-
BIRCH_PRESSURE_PLATE
-
BIRCH_SAPLING
-
BIRCH_SIGN
-
BIRCH_SLAB
-
BIRCH_STAIRS
-
BIRCH_TRAPDOOR
-
BIRCH_WALL_SIGN
-
BIRCH_WOOD
-
BLACKSTONE
-
BLACKSTONE_SLAB
-
BLACKSTONE_STAIRS
-
BLACKSTONE_WALL
-
BLACK_BANNER
-
BLACK_BED
Version 1.12+ interprets "BED" as BLACK_BED due to enum alphabetic ordering. -
BLACK_CANDLE
-
BLACK_CANDLE_CAKE
-
BLACK_CARPET
-
BLACK_CONCRETE
-
BLACK_CONCRETE_POWDER
-
BLACK_DYE
-
BLACK_GLAZED_TERRACOTTA
-
BLACK_SHULKER_BOX
-
BLACK_STAINED_GLASS
-
BLACK_STAINED_GLASS_PANE
-
BLACK_TERRACOTTA
-
BLACK_WALL_BANNER
-
BLACK_WOOL
-
BLAST_FURNACE
-
BLAZE_POWDER
-
BLAZE_ROD
-
BLAZE_SPAWN_EGG
-
BLUE_BANNER
-
BLUE_BED
-
BLUE_CANDLE
-
BLUE_CANDLE_CAKE
-
BLUE_CARPET
-
BLUE_CONCRETE
-
BLUE_CONCRETE_POWDER
-
BLUE_DYE
-
BLUE_GLAZED_TERRACOTTA
-
BLUE_ICE
-
BLUE_ORCHID
-
BLUE_SHULKER_BOX
-
BLUE_STAINED_GLASS
-
BLUE_STAINED_GLASS_PANE
-
BLUE_TERRACOTTA
-
BLUE_WALL_BANNER
-
BLUE_WOOL
-
BONE
-
BONE_BLOCK
-
BONE_MEAL
-
BOOK
-
BOOKSHELF
-
BOW
-
BOWL
-
BRAIN_CORAL
-
BRAIN_CORAL_BLOCK
-
BRAIN_CORAL_FAN
-
BRAIN_CORAL_WALL_FAN
-
BREAD
-
BREWING_STAND
-
BRICK
-
BRICKS
-
BRICK_SLAB
-
BRICK_STAIRS
-
BRICK_WALL
-
BROWN_BANNER
-
BROWN_BED
-
BROWN_CANDLE
-
BROWN_CANDLE_CAKE
-
BROWN_CARPET
-
BROWN_CONCRETE
-
BROWN_CONCRETE_POWDER
-
BROWN_DYE
-
BROWN_GLAZED_TERRACOTTA
-
BROWN_MUSHROOM
-
BROWN_MUSHROOM_BLOCK
-
BROWN_SHULKER_BOX
-
BROWN_STAINED_GLASS
-
BROWN_STAINED_GLASS_PANE
-
BROWN_TERRACOTTA
-
BROWN_WALL_BANNER
-
BROWN_WOOL
-
BUBBLE_COLUMN
-
BUBBLE_CORAL
-
BUBBLE_CORAL_BLOCK
-
BUBBLE_CORAL_FAN
-
BUBBLE_CORAL_WALL_FAN
-
BUCKET
-
BUDDING_AMETHYST
-
BUNDLE
-
CACTUS
-
CAKE
-
CALCITE
-
CAMPFIRE
-
CANDLE
-
CANDLE_CAKE
-
CARROT
-
CARROTS
-
CARROT_ON_A_STICK
-
CARTOGRAPHY_TABLE
-
CARVED_PUMPKIN
-
CAT_SPAWN_EGG
-
CAULDRON
-
CAVE_AIR
1.13 tag is not added because it's the same thing asAIR
- See Also:
VOID_AIR
-
CAVE_SPIDER_SPAWN_EGG
-
CAVE_VINES
-
CAVE_VINES_PLANT
-
CHAIN
-
CHAINMAIL_BOOTS
-
CHAINMAIL_CHESTPLATE
-
CHAINMAIL_HELMET
-
CHAINMAIL_LEGGINGS
-
CHAIN_COMMAND_BLOCK
-
CHARCOAL
-
CHEST
-
CHEST_MINECART
-
CHICKEN
-
CHICKEN_SPAWN_EGG
-
CHIPPED_ANVIL
-
CHISELED_DEEPSLATE
-
CHISELED_NETHER_BRICKS
-
CHISELED_POLISHED_BLACKSTONE
-
CHISELED_QUARTZ_BLOCK
-
CHISELED_RED_SANDSTONE
-
CHISELED_SANDSTONE
-
CHISELED_STONE_BRICKS
-
CHORUS_FLOWER
-
CHORUS_FRUIT
-
CHORUS_PLANT
-
CLAY
-
CLAY_BALL
-
CLOCK
-
COAL
-
COAL_BLOCK
-
COAL_ORE
-
COARSE_DIRT
-
COBBLED_DEEPSLATE
-
COBBLED_DEEPSLATE_SLAB
-
COBBLED_DEEPSLATE_STAIRS
-
COBBLED_DEEPSLATE_WALL
-
COBBLESTONE
-
COBBLESTONE_SLAB
-
COBBLESTONE_STAIRS
-
COBBLESTONE_WALL
-
COBWEB
-
COCOA
-
COCOA_BEANS
-
COD
-
COD_BUCKET
-
COD_SPAWN_EGG
-
COMMAND_BLOCK
-
COMMAND_BLOCK_MINECART
-
COMPARATOR
Unlike redstone torch and redstone lamp... neither REDTONE_COMPARATOR_OFF nor REDSTONE_COMPARATOR_ON are items. REDSTONE_COMPARATOR is.- See Also:
REDSTONE_TORCH
,REDSTONE_LAMP
-
COMPASS
-
COMPOSTER
-
CONDUIT
-
COOKED_BEEF
-
COOKED_CHICKEN
-
COOKED_COD
-
COOKED_MUTTON
-
COOKED_PORKCHOP
-
COOKED_RABBIT
-
COOKED_SALMON
-
COOKIE
-
COPPER_BLOCK
-
COPPER_INGOT
-
COPPER_ORE
-
CORNFLOWER
-
COW_SPAWN_EGG
-
CRACKED_DEEPSLATE_BRICKS
-
CRACKED_DEEPSLATE_TILES
-
CRACKED_NETHER_BRICKS
-
CRACKED_POLISHED_BLACKSTONE_BRICKS
-
CRACKED_STONE_BRICKS
-
CRAFTING_TABLE
-
CREEPER_BANNER_PATTERN
-
CREEPER_HEAD
-
CREEPER_SPAWN_EGG
-
CREEPER_WALL_HEAD
-
CRIMSON_BUTTON
-
CRIMSON_DOOR
-
CRIMSON_FENCE
-
CRIMSON_FENCE_GATE
-
CRIMSON_FUNGUS
-
CRIMSON_HYPHAE
-
CRIMSON_NYLIUM
-
CRIMSON_PLANKS
-
CRIMSON_PRESSURE_PLATE
-
CRIMSON_ROOTS
-
CRIMSON_SIGN
-
CRIMSON_SLAB
-
CRIMSON_STAIRS
-
CRIMSON_STEM
-
CRIMSON_TRAPDOOR
-
CRIMSON_WALL_SIGN
-
CROSSBOW
-
CRYING_OBSIDIAN
-
CUT_COPPER
-
CUT_COPPER_SLAB
-
CUT_COPPER_STAIRS
-
CUT_RED_SANDSTONE
-
CUT_RED_SANDSTONE_SLAB
-
CUT_SANDSTONE
-
CUT_SANDSTONE_SLAB
-
CYAN_BANNER
-
CYAN_BED
-
CYAN_CANDLE
-
CYAN_CANDLE_CAKE
-
CYAN_CARPET
-
CYAN_CONCRETE
-
CYAN_CONCRETE_POWDER
-
CYAN_DYE
-
CYAN_GLAZED_TERRACOTTA
-
CYAN_SHULKER_BOX
-
CYAN_STAINED_GLASS
-
CYAN_STAINED_GLASS_PANE
-
CYAN_TERRACOTTA
-
CYAN_WALL_BANNER
-
CYAN_WOOL
-
DAMAGED_ANVIL
-
DANDELION
-
DARK_OAK_BOAT
-
DARK_OAK_BUTTON
-
DARK_OAK_CHEST_BOAT
-
DARK_OAK_DOOR
-
DARK_OAK_FENCE
-
DARK_OAK_FENCE_GATE
-
DARK_OAK_LEAVES
-
DARK_OAK_LOG
-
DARK_OAK_PLANKS
-
DARK_OAK_PRESSURE_PLATE
-
DARK_OAK_SAPLING
-
DARK_OAK_SIGN
-
DARK_OAK_SLAB
-
DARK_OAK_STAIRS
-
DARK_OAK_TRAPDOOR
-
DARK_OAK_WALL_SIGN
-
DARK_OAK_WOOD
-
DARK_PRISMARINE
-
DARK_PRISMARINE_SLAB
-
DARK_PRISMARINE_STAIRS
-
DAYLIGHT_DETECTOR
-
DEAD_BRAIN_CORAL
-
DEAD_BRAIN_CORAL_BLOCK
-
DEAD_BRAIN_CORAL_FAN
-
DEAD_BRAIN_CORAL_WALL_FAN
-
DEAD_BUBBLE_CORAL
-
DEAD_BUBBLE_CORAL_BLOCK
-
DEAD_BUBBLE_CORAL_FAN
-
DEAD_BUBBLE_CORAL_WALL_FAN
-
DEAD_BUSH
-
DEAD_FIRE_CORAL
-
DEAD_FIRE_CORAL_BLOCK
-
DEAD_FIRE_CORAL_FAN
-
DEAD_FIRE_CORAL_WALL_FAN
-
DEAD_HORN_CORAL
-
DEAD_HORN_CORAL_BLOCK
-
DEAD_HORN_CORAL_FAN
-
DEAD_HORN_CORAL_WALL_FAN
-
DEAD_TUBE_CORAL
-
DEAD_TUBE_CORAL_BLOCK
-
DEAD_TUBE_CORAL_FAN
-
DEAD_TUBE_CORAL_WALL_FAN
-
DEBUG_STICK
-
DEEPSLATE
-
DEEPSLATE_BRICKS
-
DEEPSLATE_BRICK_SLAB
-
DEEPSLATE_BRICK_STAIRS
-
DEEPSLATE_BRICK_WALL
-
DEEPSLATE_COAL_ORE
-
DEEPSLATE_COPPER_ORE
-
DEEPSLATE_DIAMOND_ORE
-
DEEPSLATE_EMERALD_ORE
-
DEEPSLATE_GOLD_ORE
-
DEEPSLATE_IRON_ORE
-
DEEPSLATE_LAPIS_ORE
-
DEEPSLATE_REDSTONE_ORE
-
DEEPSLATE_TILES
-
DEEPSLATE_TILE_SLAB
-
DEEPSLATE_TILE_STAIRS
-
DEEPSLATE_TILE_WALL
-
DETECTOR_RAIL
-
DIAMOND
-
DIAMOND_AXE
-
DIAMOND_BLOCK
-
DIAMOND_BOOTS
-
DIAMOND_CHESTPLATE
-
DIAMOND_HELMET
-
DIAMOND_HOE
-
DIAMOND_HORSE_ARMOR
-
DIAMOND_LEGGINGS
-
DIAMOND_ORE
-
DIAMOND_PICKAXE
-
DIAMOND_SHOVEL
-
DIAMOND_SWORD
-
DIORITE
-
DIORITE_SLAB
-
DIORITE_STAIRS
-
DIORITE_WALL
-
DIRT
-
DIRT_PATH
Changed in 1.17 -
DISC_FRAGMENT_5
-
DISPENSER
-
DOLPHIN_SPAWN_EGG
-
DONKEY_SPAWN_EGG
-
DRAGON_BREATH
-
DRAGON_EGG
-
DRAGON_HEAD
-
DRAGON_WALL_HEAD
-
DRIED_KELP
-
DRIED_KELP_BLOCK
-
DRIPSTONE_BLOCK
-
DROPPER
-
DROWNED_SPAWN_EGG
-
ECHO_SHARD
-
EGG
-
ELDER_GUARDIAN_SPAWN_EGG
-
ELYTRA
-
EMERALD
-
EMERALD_BLOCK
-
EMERALD_ORE
-
ENCHANTED_BOOK
-
ENCHANTED_GOLDEN_APPLE
-
ENCHANTING_TABLE
-
ENDERMAN_SPAWN_EGG
-
ENDERMITE_SPAWN_EGG
-
ENDER_CHEST
-
ENDER_EYE
-
ENDER_PEARL
-
END_CRYSTAL
-
END_GATEWAY
-
END_PORTAL
-
END_PORTAL_FRAME
-
END_ROD
-
END_STONE
-
END_STONE_BRICKS
-
END_STONE_BRICK_SLAB
-
END_STONE_BRICK_STAIRS
-
END_STONE_BRICK_WALL
-
EVOKER_SPAWN_EGG
-
EXPERIENCE_BOTTLE
-
EXPOSED_COPPER
-
EXPOSED_CUT_COPPER
-
EXPOSED_CUT_COPPER_SLAB
-
EXPOSED_CUT_COPPER_STAIRS
-
FARMLAND
-
FEATHER
-
FERMENTED_SPIDER_EYE
-
FERN
-
FILLED_MAP
For some reasons filled map items are really special. Their data value starts from 0 and every time a player creates a new map that maps data value increases. https://github.com/CryptoMorin/XSeries/issues/91 -
FIRE
-
FIREWORK_ROCKET
-
FIREWORK_STAR
-
FIRE_CHARGE
-
FIRE_CORAL
-
FIRE_CORAL_BLOCK
-
FIRE_CORAL_FAN
-
FIRE_CORAL_WALL_FAN
-
FISHING_ROD
-
FLETCHING_TABLE
-
FLINT
-
FLINT_AND_STEEL
-
FLOWERING_AZALEA
-
FLOWERING_AZALEA_LEAVES
-
FLOWER_BANNER_PATTERN
-
FLOWER_POT
-
FOX_SPAWN_EGG
-
FROGSPAWN
-
FROG_SPAWN_EGG
-
FROSTED_ICE
This special material cannot be obtained as an item. -
FURNACE
-
FURNACE_MINECART
-
GHAST_SPAWN_EGG
-
GHAST_TEAR
-
GILDED_BLACKSTONE
-
GLASS
-
GLASS_BOTTLE
-
GLASS_PANE
-
GLISTERING_MELON_SLICE
-
GLOBE_BANNER_PATTERN
-
GLOWSTONE
-
GLOWSTONE_DUST
-
GLOW_BERRIES
-
GLOW_INK_SAC
-
GLOW_ITEM_FRAME
-
GLOW_LICHEN
-
GLOW_SQUID_SPAWN_EGG
-
GOAT_HORN
-
GOAT_SPAWN_EGG
-
GOLDEN_APPLE
-
GOLDEN_AXE
-
GOLDEN_BOOTS
-
GOLDEN_CARROT
-
GOLDEN_CHESTPLATE
-
GOLDEN_HELMET
-
GOLDEN_HOE
-
GOLDEN_HORSE_ARMOR
-
GOLDEN_LEGGINGS
-
GOLDEN_PICKAXE
-
GOLDEN_SHOVEL
-
GOLDEN_SWORD
-
GOLD_BLOCK
-
GOLD_INGOT
-
GOLD_NUGGET
-
GOLD_ORE
-
GRANITE
-
GRANITE_SLAB
-
GRANITE_STAIRS
-
GRANITE_WALL
-
GRASS
-
GRASS_BLOCK
-
GRAVEL
-
GRAY_BANNER
-
GRAY_BED
-
GRAY_CANDLE
-
GRAY_CANDLE_CAKE
-
GRAY_CARPET
-
GRAY_CONCRETE
-
GRAY_CONCRETE_POWDER
-
GRAY_DYE
-
GRAY_GLAZED_TERRACOTTA
-
GRAY_SHULKER_BOX
-
GRAY_STAINED_GLASS
-
GRAY_STAINED_GLASS_PANE
-
GRAY_TERRACOTTA
-
GRAY_WALL_BANNER
-
GRAY_WOOL
-
GREEN_BANNER
-
GREEN_BED
-
GREEN_CANDLE
-
GREEN_CANDLE_CAKE
-
GREEN_CARPET
-
GREEN_CONCRETE
-
GREEN_CONCRETE_POWDER
-
GREEN_DYE
1.13 renamed to CACTUS_GREEN 1.14 renamed to GREEN_DYE -
GREEN_GLAZED_TERRACOTTA
-
GREEN_SHULKER_BOX
-
GREEN_STAINED_GLASS
-
GREEN_STAINED_GLASS_PANE
-
GREEN_TERRACOTTA
-
GREEN_WALL_BANNER
-
GREEN_WOOL
-
GRINDSTONE
-
GUARDIAN_SPAWN_EGG
-
GUNPOWDER
-
HANGING_ROOTS
-
HAY_BLOCK
-
HEART_OF_THE_SEA
-
HEAVY_WEIGHTED_PRESSURE_PLATE
-
HOGLIN_SPAWN_EGG
-
HONEYCOMB
-
HONEYCOMB_BLOCK
-
HONEY_BLOCK
-
HONEY_BOTTLE
-
HOPPER
-
HOPPER_MINECART
-
HORN_CORAL
-
HORN_CORAL_BLOCK
-
HORN_CORAL_FAN
-
HORN_CORAL_WALL_FAN
-
HORSE_SPAWN_EGG
-
HUSK_SPAWN_EGG
-
ICE
-
INFESTED_CHISELED_STONE_BRICKS
-
INFESTED_COBBLESTONE
-
INFESTED_CRACKED_STONE_BRICKS
-
INFESTED_DEEPSLATE
-
INFESTED_MOSSY_STONE_BRICKS
-
INFESTED_STONE
-
INFESTED_STONE_BRICKS
-
INK_SAC
We will only add "INK_SAC" forBLACK_DYE
since it's the only material (linked with this material) that is added after 1.13, which means it can use both INK_SACK and INK_SAC. -
IRON_AXE
-
IRON_BARS
-
IRON_BLOCK
-
IRON_BOOTS
-
IRON_CHESTPLATE
-
IRON_DOOR
-
IRON_HELMET
-
IRON_HOE
-
IRON_HORSE_ARMOR
-
IRON_INGOT
-
IRON_LEGGINGS
-
IRON_NUGGET
-
IRON_ORE
-
IRON_PICKAXE
-
IRON_SHOVEL
-
IRON_SWORD
-
IRON_TRAPDOOR
-
ITEM_FRAME
-
JACK_O_LANTERN
-
JIGSAW
-
JUKEBOX
-
JUNGLE_BOAT
-
JUNGLE_BUTTON
-
JUNGLE_CHEST_BOAT
-
JUNGLE_DOOR
-
JUNGLE_FENCE
-
JUNGLE_FENCE_GATE
-
JUNGLE_LEAVES
-
JUNGLE_LOG
-
JUNGLE_PLANKS
-
JUNGLE_PRESSURE_PLATE
-
JUNGLE_SAPLING
-
JUNGLE_SIGN
-
JUNGLE_SLAB
-
JUNGLE_STAIRS
-
JUNGLE_TRAPDOOR
-
JUNGLE_WALL_SIGN
-
JUNGLE_WOOD
-
KELP
-
KELP_PLANT
-
KNOWLEDGE_BOOK
-
LADDER
-
LANTERN
-
LAPIS_BLOCK
-
LAPIS_LAZULI
-
LAPIS_ORE
-
LARGE_AMETHYST_BUD
-
LARGE_FERN
-
LAVA
-
LAVA_BUCKET
-
LAVA_CAULDRON
-
LEAD
-
LEATHER
-
LEATHER_BOOTS
-
LEATHER_CHESTPLATE
-
LEATHER_HELMET
-
LEATHER_HORSE_ARMOR
-
LEATHER_LEGGINGS
-
LECTERN
-
LEVER
-
LIGHT
-
LIGHTNING_ROD
-
LIGHT_BLUE_BANNER
-
LIGHT_BLUE_BED
-
LIGHT_BLUE_CANDLE
-
LIGHT_BLUE_CANDLE_CAKE
-
LIGHT_BLUE_CARPET
-
LIGHT_BLUE_CONCRETE
-
LIGHT_BLUE_CONCRETE_POWDER
-
LIGHT_BLUE_DYE
-
LIGHT_BLUE_GLAZED_TERRACOTTA
-
LIGHT_BLUE_SHULKER_BOX
-
LIGHT_BLUE_STAINED_GLASS
-
LIGHT_BLUE_STAINED_GLASS_PANE
-
LIGHT_BLUE_TERRACOTTA
-
LIGHT_BLUE_WALL_BANNER
-
LIGHT_BLUE_WOOL
-
LIGHT_GRAY_BANNER
-
LIGHT_GRAY_BED
-
LIGHT_GRAY_CANDLE
-
LIGHT_GRAY_CANDLE_CAKE
-
LIGHT_GRAY_CARPET
-
LIGHT_GRAY_CONCRETE
-
LIGHT_GRAY_CONCRETE_POWDER
-
LIGHT_GRAY_DYE
-
LIGHT_GRAY_GLAZED_TERRACOTTA
Renamed to SILVER_GLAZED_TERRACOTTA in 1.12 Renamed to LIGHT_GRAY_GLAZED_TERRACOTTA in 1.14 -
LIGHT_GRAY_SHULKER_BOX
-
LIGHT_GRAY_STAINED_GLASS
-
LIGHT_GRAY_STAINED_GLASS_PANE
-
LIGHT_GRAY_TERRACOTTA
-
LIGHT_GRAY_WALL_BANNER
-
LIGHT_GRAY_WOOL
-
LIGHT_WEIGHTED_PRESSURE_PLATE
-
LILAC
-
LILY_OF_THE_VALLEY
-
LILY_PAD
-
LIME_BANNER
-
LIME_BED
-
LIME_CANDLE
-
LIME_CANDLE_CAKE
-
LIME_CARPET
-
LIME_CONCRETE
-
LIME_CONCRETE_POWDER
-
LIME_DYE
-
LIME_GLAZED_TERRACOTTA
-
LIME_SHULKER_BOX
-
LIME_STAINED_GLASS
-
LIME_STAINED_GLASS_PANE
-
LIME_TERRACOTTA
-
LIME_WALL_BANNER
-
LIME_WOOL
-
LINGERING_POTION
-
LLAMA_SPAWN_EGG
-
LODESTONE
-
LOOM
-
MAGENTA_BANNER
-
MAGENTA_BED
-
MAGENTA_CANDLE
-
MAGENTA_CANDLE_CAKE
-
MAGENTA_CARPET
-
MAGENTA_CONCRETE
-
MAGENTA_CONCRETE_POWDER
-
MAGENTA_DYE
-
MAGENTA_GLAZED_TERRACOTTA
-
MAGENTA_SHULKER_BOX
-
MAGENTA_STAINED_GLASS
-
MAGENTA_STAINED_GLASS_PANE
-
MAGENTA_TERRACOTTA
-
MAGENTA_WALL_BANNER
-
MAGENTA_WOOL
-
MAGMA_BLOCK
-
MAGMA_CREAM
-
MAGMA_CUBE_SPAWN_EGG
-
MANGROVE_BOAT
-
MANGROVE_BUTTON
-
MANGROVE_CHEST_BOAT
-
MANGROVE_DOOR
-
MANGROVE_FENCE
-
MANGROVE_FENCE_GATE
-
MANGROVE_LEAVES
-
MANGROVE_LOG
-
MANGROVE_PLANKS
-
MANGROVE_PRESSURE_PLATE
-
MANGROVE_PROPAGULE
-
MANGROVE_ROOTS
-
MANGROVE_SIGN
-
MANGROVE_SLAB
-
MANGROVE_STAIRS
-
MANGROVE_TRAPDOOR
-
MANGROVE_WALL_SIGN
-
MANGROVE_WOOD
-
MAP
Adding this to the duplicated list will give you a filled map for 1.13+ versions and removing it from duplicated list will still give you a filled map in -1.12 versions. Since higher versions are our priority I'll keep 1.13+ support until I can come up with something to fix it. -
MEDIUM_AMETHYST_BUD
-
MELON
-
MELON_SEEDS
-
MELON_SLICE
-
MELON_STEM
-
MILK_BUCKET
-
MINECART
-
MOJANG_BANNER_PATTERN
-
MOOSHROOM_SPAWN_EGG
-
MOSSY_COBBLESTONE
-
MOSSY_COBBLESTONE_SLAB
-
MOSSY_COBBLESTONE_STAIRS
-
MOSSY_COBBLESTONE_WALL
-
MOSSY_STONE_BRICKS
-
MOSSY_STONE_BRICK_SLAB
-
MOSSY_STONE_BRICK_STAIRS
-
MOSSY_STONE_BRICK_WALL
-
MOSS_BLOCK
-
MOSS_CARPET
-
MOVING_PISTON
-
MUD
-
MUDDY_MANGROVE_ROOTS
-
MUD_BRICKS
-
MUD_BRICK_SLAB
-
MUD_BRICK_STAIRS
-
MUD_BRICK_WALL
-
MULE_SPAWN_EGG
-
MUSHROOM_STEM
-
MUSHROOM_STEW
-
MUSIC_DISC_11
-
MUSIC_DISC_13
-
MUSIC_DISC_5
-
MUSIC_DISC_BLOCKS
-
MUSIC_DISC_CAT
-
MUSIC_DISC_CHIRP
-
MUSIC_DISC_FAR
-
MUSIC_DISC_MALL
-
MUSIC_DISC_MELLOHI
-
MUSIC_DISC_OTHERSIDE
-
MUSIC_DISC_PIGSTEP
-
MUSIC_DISC_STAL
-
MUSIC_DISC_STRAD
-
MUSIC_DISC_WAIT
-
MUSIC_DISC_WARD
-
MUTTON
-
MYCELIUM
-
NAME_TAG
-
NAUTILUS_SHELL
-
NETHERITE_AXE
-
NETHERITE_BLOCK
-
NETHERITE_BOOTS
-
NETHERITE_CHESTPLATE
-
NETHERITE_HELMET
-
NETHERITE_HOE
-
NETHERITE_INGOT
-
NETHERITE_LEGGINGS
-
NETHERITE_PICKAXE
-
NETHERITE_SCRAP
-
NETHERITE_SHOVEL
-
NETHERITE_SWORD
-
NETHERRACK
-
NETHER_BRICK
-
NETHER_BRICKS
-
NETHER_BRICK_FENCE
-
NETHER_BRICK_SLAB
-
NETHER_BRICK_STAIRS
-
NETHER_BRICK_WALL
-
NETHER_GOLD_ORE
-
NETHER_PORTAL
-
NETHER_QUARTZ_ORE
-
NETHER_SPROUTS
-
NETHER_STAR
-
NETHER_WART
Just like mentioned in https://minecraft.gamepedia.com/Nether_Wart Nether wart is also known as nether stalk in the code. NETHER_STALK is the planted state of nether warts. -
NETHER_WART_BLOCK
-
NOTE_BLOCK
-
OAK_BOAT
-
OAK_BUTTON
-
OAK_CHEST_BOAT
-
OAK_DOOR
-
OAK_FENCE
-
OAK_FENCE_GATE
-
OAK_LEAVES
-
OAK_LOG
-
OAK_PLANKS
-
OAK_PRESSURE_PLATE
-
OAK_SAPLING
-
OAK_SIGN
-
OAK_SLAB
-
OAK_STAIRS
-
OAK_TRAPDOOR
-
OAK_WALL_SIGN
-
OAK_WOOD
-
OBSERVER
-
OBSIDIAN
-
OCELOT_SPAWN_EGG
-
OCHRE_FROGLIGHT
-
ORANGE_BANNER
-
ORANGE_BED
-
ORANGE_CANDLE
-
ORANGE_CANDLE_CAKE
-
ORANGE_CARPET
-
ORANGE_CONCRETE
-
ORANGE_CONCRETE_POWDER
-
ORANGE_DYE
-
ORANGE_GLAZED_TERRACOTTA
-
ORANGE_SHULKER_BOX
-
ORANGE_STAINED_GLASS
-
ORANGE_STAINED_GLASS_PANE
-
ORANGE_TERRACOTTA
-
ORANGE_TULIP
-
ORANGE_WALL_BANNER
-
ORANGE_WOOL
-
OXEYE_DAISY
-
OXIDIZED_COPPER
-
OXIDIZED_CUT_COPPER
-
OXIDIZED_CUT_COPPER_SLAB
-
OXIDIZED_CUT_COPPER_STAIRS
-
PACKED_ICE
-
PACKED_MUD
-
PAINTING
-
PANDA_SPAWN_EGG
-
PAPER
-
PARROT_SPAWN_EGG
-
PEARLESCENT_FROGLIGHT
-
PEONY
-
PETRIFIED_OAK_SLAB
-
PHANTOM_MEMBRANE
-
PHANTOM_SPAWN_EGG
-
PIGLIN_BANNER_PATTERN
-
PIGLIN_BRUTE_SPAWN_EGG
-
PIGLIN_SPAWN_EGG
-
PIG_SPAWN_EGG
-
PILLAGER_SPAWN_EGG
-
PINK_BANNER
-
PINK_BED
-
PINK_CANDLE
-
PINK_CANDLE_CAKE
-
PINK_CARPET
-
PINK_CONCRETE
-
PINK_CONCRETE_POWDER
-
PINK_DYE
-
PINK_GLAZED_TERRACOTTA
-
PINK_SHULKER_BOX
-
PINK_STAINED_GLASS
-
PINK_STAINED_GLASS_PANE
-
PINK_TERRACOTTA
-
PINK_TULIP
-
PINK_WALL_BANNER
-
PINK_WOOL
-
PISTON
-
PISTON_HEAD
-
PLAYER_HEAD
-
PLAYER_WALL_HEAD
-
PODZOL
-
POINTED_DRIPSTONE
-
POISONOUS_POTATO
-
POLAR_BEAR_SPAWN_EGG
-
POLISHED_ANDESITE
-
POLISHED_ANDESITE_SLAB
-
POLISHED_ANDESITE_STAIRS
-
POLISHED_BASALT
-
POLISHED_BLACKSTONE
-
POLISHED_BLACKSTONE_BRICKS
-
POLISHED_BLACKSTONE_BRICK_SLAB
-
POLISHED_BLACKSTONE_BRICK_STAIRS
-
POLISHED_BLACKSTONE_BRICK_WALL
-
POLISHED_BLACKSTONE_BUTTON
-
POLISHED_BLACKSTONE_PRESSURE_PLATE
-
POLISHED_BLACKSTONE_SLAB
-
POLISHED_BLACKSTONE_STAIRS
-
POLISHED_BLACKSTONE_WALL
-
POLISHED_DEEPSLATE
-
POLISHED_DEEPSLATE_SLAB
-
POLISHED_DEEPSLATE_STAIRS
-
POLISHED_DEEPSLATE_WALL
-
POLISHED_DIORITE
-
POLISHED_DIORITE_SLAB
-
POLISHED_DIORITE_STAIRS
-
POLISHED_GRANITE
-
POLISHED_GRANITE_SLAB
-
POLISHED_GRANITE_STAIRS
-
POPPED_CHORUS_FRUIT
-
POPPY
-
PORKCHOP
-
POTATO
-
POTATOES
-
POTION
-
POTTED_ACACIA_SAPLING
-
POTTED_ALLIUM
-
POTTED_AZALEA_BUSH
-
POTTED_AZURE_BLUET
-
POTTED_BAMBOO
-
POTTED_BIRCH_SAPLING
-
POTTED_BLUE_ORCHID
-
POTTED_BROWN_MUSHROOM
-
POTTED_CACTUS
-
POTTED_CORNFLOWER
-
POTTED_CRIMSON_FUNGUS
-
POTTED_CRIMSON_ROOTS
-
POTTED_DANDELION
-
POTTED_DARK_OAK_SAPLING
-
POTTED_DEAD_BUSH
-
POTTED_FERN
-
POTTED_FLOWERING_AZALEA_BUSH
-
POTTED_JUNGLE_SAPLING
-
POTTED_LILY_OF_THE_VALLEY
-
POTTED_MANGROVE_PROPAGULE
-
POTTED_OAK_SAPLING
-
POTTED_ORANGE_TULIP
-
POTTED_OXEYE_DAISY
-
POTTED_PINK_TULIP
-
POTTED_POPPY
-
POTTED_RED_MUSHROOM
-
POTTED_RED_TULIP
-
POTTED_SPRUCE_SAPLING
-
POTTED_WARPED_FUNGUS
-
POTTED_WARPED_ROOTS
-
POTTED_WHITE_TULIP
-
POTTED_WITHER_ROSE
-
POWDER_SNOW
-
POWDER_SNOW_BUCKET
-
POWDER_SNOW_CAULDRON
-
POWERED_RAIL
-
PRISMARINE
-
PRISMARINE_BRICKS
-
PRISMARINE_BRICK_SLAB
-
PRISMARINE_BRICK_STAIRS
-
PRISMARINE_CRYSTALS
-
PRISMARINE_SHARD
-
PRISMARINE_SLAB
-
PRISMARINE_STAIRS
-
PRISMARINE_WALL
-
PUFFERFISH
-
PUFFERFISH_BUCKET
-
PUFFERFISH_SPAWN_EGG
-
PUMPKIN
-
PUMPKIN_PIE
-
PUMPKIN_SEEDS
-
PUMPKIN_STEM
-
PURPLE_BANNER
-
PURPLE_BED
-
PURPLE_CANDLE
-
PURPLE_CANDLE_CAKE
-
PURPLE_CARPET
-
PURPLE_CONCRETE
-
PURPLE_CONCRETE_POWDER
-
PURPLE_DYE
-
PURPLE_GLAZED_TERRACOTTA
-
PURPLE_SHULKER_BOX
-
PURPLE_STAINED_GLASS
-
PURPLE_STAINED_GLASS_PANE
-
PURPLE_TERRACOTTA
-
PURPLE_WALL_BANNER
-
PURPLE_WOOL
-
PURPUR_BLOCK
-
PURPUR_PILLAR
-
PURPUR_SLAB
-
PURPUR_STAIRS
-
QUARTZ
-
QUARTZ_BLOCK
-
QUARTZ_BRICKS
-
QUARTZ_PILLAR
-
QUARTZ_SLAB
-
QUARTZ_STAIRS
-
RABBIT
-
RABBIT_FOOT
-
RABBIT_HIDE
-
RABBIT_SPAWN_EGG
-
RABBIT_STEW
-
RAIL
-
RAVAGER_SPAWN_EGG
-
RAW_COPPER
-
RAW_COPPER_BLOCK
-
RAW_GOLD
-
RAW_GOLD_BLOCK
-
RAW_IRON
-
RAW_IRON_BLOCK
-
RECOVERY_COMPASS
-
REDSTONE
-
REDSTONE_BLOCK
-
REDSTONE_LAMP
Unlike redstone torch, REDSTONE_LAMP_ON isn't an item. The name is just here on the list for matching.- See Also:
REDSTONE_TORCH
-
REDSTONE_ORE
-
REDSTONE_TORCH
REDSTONE_TORCH_OFF isn't an item, but a block. But REDSTONE_TORCH_ON is the item. The name is just here on the list for matching. -
REDSTONE_WALL_TORCH
-
REDSTONE_WIRE
-
RED_BANNER
-
RED_BED
Data value 14 or 0 -
RED_CANDLE
-
RED_CANDLE_CAKE
-
RED_CARPET
-
RED_CONCRETE
-
RED_CONCRETE_POWDER
-
RED_DYE
-
RED_GLAZED_TERRACOTTA
-
RED_MUSHROOM
-
RED_MUSHROOM_BLOCK
-
RED_NETHER_BRICKS
-
RED_NETHER_BRICK_SLAB
-
RED_NETHER_BRICK_STAIRS
-
RED_NETHER_BRICK_WALL
-
RED_SAND
-
RED_SANDSTONE
-
RED_SANDSTONE_SLAB
-
RED_SANDSTONE_STAIRS
-
RED_SANDSTONE_WALL
-
RED_SHULKER_BOX
-
RED_STAINED_GLASS
-
RED_STAINED_GLASS_PANE
-
RED_TERRACOTTA
-
RED_TULIP
-
RED_WALL_BANNER
-
RED_WOOL
-
REINFORCED_DEEPSLATE
-
REPEATER
-
REPEATING_COMMAND_BLOCK
-
RESPAWN_ANCHOR
-
ROOTED_DIRT
-
ROSE_BUSH
-
ROTTEN_FLESH
-
SADDLE
-
SALMON
-
SALMON_BUCKET
-
SALMON_SPAWN_EGG
-
SAND
-
SANDSTONE
-
SANDSTONE_SLAB
-
SANDSTONE_STAIRS
-
SANDSTONE_WALL
-
SCAFFOLDING
-
SCULK
-
SCULK_CATALYST
-
SCULK_SENSOR
-
SCULK_SHRIEKER
-
SCULK_VEIN
-
SCUTE
-
SEAGRASS
-
SEA_LANTERN
-
SEA_PICKLE
-
SHEARS
-
SHEEP_SPAWN_EGG
-
SHIELD
-
SHROOMLIGHT
-
SHULKER_BOX
-
SHULKER_SHELL
-
SHULKER_SPAWN_EGG
-
SILVERFISH_SPAWN_EGG
-
SKELETON_HORSE_SPAWN_EGG
-
SKELETON_SKULL
-
SKELETON_SPAWN_EGG
-
SKELETON_WALL_SKULL
-
SKULL_BANNER_PATTERN
-
SLIME_BALL
-
SLIME_BLOCK
-
SLIME_SPAWN_EGG
-
SMALL_AMETHYST_BUD
-
SMALL_DRIPLEAF
-
SMITHING_TABLE
-
SMOKER
-
SMOOTH_BASALT
-
SMOOTH_QUARTZ
-
SMOOTH_QUARTZ_SLAB
-
SMOOTH_QUARTZ_STAIRS
-
SMOOTH_RED_SANDSTONE
-
SMOOTH_RED_SANDSTONE_SLAB
-
SMOOTH_RED_SANDSTONE_STAIRS
-
SMOOTH_SANDSTONE
-
SMOOTH_SANDSTONE_SLAB
-
SMOOTH_SANDSTONE_STAIRS
-
SMOOTH_STONE
-
SMOOTH_STONE_SLAB
-
SNOW
-
SNOWBALL
-
SNOW_BLOCK
-
SOUL_CAMPFIRE
-
SOUL_FIRE
-
SOUL_LANTERN
-
SOUL_SAND
-
SOUL_SOIL
-
SOUL_TORCH
-
SOUL_WALL_TORCH
-
SPAWNER
-
SPECTRAL_ARROW
-
SPIDER_EYE
-
SPIDER_SPAWN_EGG
-
SPLASH_POTION
-
SPONGE
-
SPORE_BLOSSOM
-
SPRUCE_BOAT
-
SPRUCE_BUTTON
-
SPRUCE_CHEST_BOAT
-
SPRUCE_DOOR
-
SPRUCE_FENCE
-
SPRUCE_FENCE_GATE
-
SPRUCE_LEAVES
-
SPRUCE_LOG
-
SPRUCE_PLANKS
-
SPRUCE_PRESSURE_PLATE
-
SPRUCE_SAPLING
-
SPRUCE_SIGN
-
SPRUCE_SLAB
-
SPRUCE_STAIRS
-
SPRUCE_TRAPDOOR
-
SPRUCE_WALL_SIGN
-
SPRUCE_WOOD
-
SPYGLASS
-
SQUID_SPAWN_EGG
-
STICK
-
STICKY_PISTON
-
STONE
-
STONECUTTER
-
STONE_AXE
-
STONE_BRICKS
-
STONE_BRICK_SLAB
-
STONE_BRICK_STAIRS
-
STONE_BRICK_WALL
-
STONE_BUTTON
-
STONE_HOE
-
STONE_PICKAXE
-
STONE_PRESSURE_PLATE
-
STONE_SHOVEL
-
STONE_SLAB
-
STONE_STAIRS
-
STONE_SWORD
-
STRAY_SPAWN_EGG
-
STRIDER_SPAWN_EGG
-
STRING
-
STRIPPED_ACACIA_LOG
-
STRIPPED_ACACIA_WOOD
-
STRIPPED_BIRCH_LOG
-
STRIPPED_BIRCH_WOOD
-
STRIPPED_CRIMSON_HYPHAE
-
STRIPPED_CRIMSON_STEM
-
STRIPPED_DARK_OAK_LOG
-
STRIPPED_DARK_OAK_WOOD
-
STRIPPED_JUNGLE_LOG
-
STRIPPED_JUNGLE_WOOD
-
STRIPPED_MANGROVE_LOG
-
STRIPPED_MANGROVE_WOOD
-
STRIPPED_OAK_LOG
-
STRIPPED_OAK_WOOD
-
STRIPPED_SPRUCE_LOG
-
STRIPPED_SPRUCE_WOOD
-
STRIPPED_WARPED_HYPHAE
-
STRIPPED_WARPED_STEM
-
STRUCTURE_BLOCK
-
STRUCTURE_VOID
Originally developers used barrier blocks for its purpose. So technically this isn't really considered as a suggested material. -
SUGAR
-
SUGAR_CANE
Sugar Cane is a known material in pre-1.13 -
SUNFLOWER
-
SUSPICIOUS_STEW
-
SWEET_BERRIES
-
SWEET_BERRY_BUSH
-
TADPOLE_BUCKET
-
TADPOLE_SPAWN_EGG
-
TALL_GRASS
-
TALL_SEAGRASS
-
TARGET
-
TERRACOTTA
-
TINTED_GLASS
-
TIPPED_ARROW
-
TNT
-
TNT_MINECART
-
TORCH
-
TOTEM_OF_UNDYING
-
TRADER_LLAMA_SPAWN_EGG
-
TRAPPED_CHEST
-
TRIDENT
-
TRIPWIRE
-
TRIPWIRE_HOOK
-
TROPICAL_FISH
-
TROPICAL_FISH_BUCKET
-
TROPICAL_FISH_SPAWN_EGG
-
TUBE_CORAL
-
TUBE_CORAL_BLOCK
-
TUBE_CORAL_FAN
-
TUBE_CORAL_WALL_FAN
-
TUFF
-
TURTLE_EGG
-
TURTLE_HELMET
-
TURTLE_SPAWN_EGG
-
TWISTING_VINES
-
TWISTING_VINES_PLANT
-
VERDANT_FROGLIGHT
-
VEX_SPAWN_EGG
-
VILLAGER_SPAWN_EGG
-
VINDICATOR_SPAWN_EGG
-
VINE
-
VOID_AIR
1.13 tag is not added because it's the same thing asAIR
- See Also:
CAVE_AIR
-
WALL_TORCH
-
WANDERING_TRADER_SPAWN_EGG
-
WARDEN_SPAWN_EGG
-
WARPED_BUTTON
-
WARPED_DOOR
-
WARPED_FENCE
-
WARPED_FENCE_GATE
-
WARPED_FUNGUS
-
WARPED_FUNGUS_ON_A_STICK
-
WARPED_HYPHAE
-
WARPED_NYLIUM
-
WARPED_PLANKS
-
WARPED_PRESSURE_PLATE
-
WARPED_ROOTS
-
WARPED_SIGN
-
WARPED_SLAB
-
WARPED_STAIRS
-
WARPED_STEM
-
WARPED_TRAPDOOR
-
WARPED_WALL_SIGN
-
WARPED_WART_BLOCK
-
WATER
This is used for blocks only. In 1.13- WATER will turn into STATIONARY_WATER after it finished spreading. After 1.13+ this uses https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/data/Levelled.html water flowing system. -
WATER_BUCKET
-
WATER_CAULDRON
-
WAXED_COPPER_BLOCK
-
WAXED_CUT_COPPER
-
WAXED_CUT_COPPER_SLAB
-
WAXED_CUT_COPPER_STAIRS
-
WAXED_EXPOSED_COPPER
-
WAXED_EXPOSED_CUT_COPPER
-
WAXED_EXPOSED_CUT_COPPER_SLAB
-
WAXED_EXPOSED_CUT_COPPER_STAIRS
-
WAXED_OXIDIZED_COPPER
-
WAXED_OXIDIZED_CUT_COPPER
-
WAXED_OXIDIZED_CUT_COPPER_SLAB
-
WAXED_OXIDIZED_CUT_COPPER_STAIRS
-
WAXED_WEATHERED_COPPER
-
WAXED_WEATHERED_CUT_COPPER
-
WAXED_WEATHERED_CUT_COPPER_SLAB
-
WAXED_WEATHERED_CUT_COPPER_STAIRS
-
WEATHERED_COPPER
-
WEATHERED_CUT_COPPER
-
WEATHERED_CUT_COPPER_SLAB
-
WEATHERED_CUT_COPPER_STAIRS
-
WEEPING_VINES
-
WEEPING_VINES_PLANT
-
WET_SPONGE
-
WHEAT
Wheat is a known material in pre-1.13 -
WHEAT_SEEDS
-
WHITE_BANNER
-
WHITE_BED
-
WHITE_CANDLE
-
WHITE_CANDLE_CAKE
-
WHITE_CARPET
-
WHITE_CONCRETE
-
WHITE_CONCRETE_POWDER
-
WHITE_DYE
-
WHITE_GLAZED_TERRACOTTA
-
WHITE_SHULKER_BOX
-
WHITE_STAINED_GLASS
-
WHITE_STAINED_GLASS_PANE
-
WHITE_TERRACOTTA
-
WHITE_TULIP
-
WHITE_WALL_BANNER
-
WHITE_WOOL
-
WITCH_SPAWN_EGG
-
WITHER_ROSE
-
WITHER_SKELETON_SKULL
-
WITHER_SKELETON_SPAWN_EGG
-
WITHER_SKELETON_WALL_SKULL
-
WOLF_SPAWN_EGG
-
WOODEN_AXE
-
WOODEN_HOE
-
WOODEN_PICKAXE
-
WOODEN_SHOVEL
-
WOODEN_SWORD
-
WRITABLE_BOOK
-
WRITTEN_BOOK
-
YELLOW_BANNER
-
YELLOW_BED
-
YELLOW_CANDLE
-
YELLOW_CANDLE_CAKE
-
YELLOW_CARPET
-
YELLOW_CONCRETE
-
YELLOW_CONCRETE_POWDER
-
YELLOW_DYE
-
YELLOW_GLAZED_TERRACOTTA
-
YELLOW_SHULKER_BOX
-
YELLOW_STAINED_GLASS
-
YELLOW_STAINED_GLASS_PANE
-
YELLOW_TERRACOTTA
-
YELLOW_WALL_BANNER
-
YELLOW_WOOL
-
ZOGLIN_SPAWN_EGG
-
ZOMBIE_HEAD
-
ZOMBIE_HORSE_SPAWN_EGG
-
ZOMBIE_SPAWN_EGG
-
ZOMBIE_VILLAGER_SPAWN_EGG
-
ZOMBIE_WALL_HEAD
-
ZOMBIFIED_PIGLIN_SPAWN_EGG
-
-
Field Details
-
VALUES
Cached array ofvalues()
to avoid allocating memory for calling the method every time.- Since:
- 2.0.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isNewVersion
Deprecated.UseXMaterial.supports(13)
instead. This method name can be confusing.Checks if the version is 1.13 Aquatic Update or higher. An invocation of this method yields the cached result from the expression:13
}- Returns:
- true if 1.13 or higher.
- Since:
- 1.0.0
- See Also:
getVersion()
,supports(int)
-
isOneEight
Deprecated.Use!XMaterial.supports(9)
instead.This is just an extra method that can be used for many cases. It can be used inPlayerInteractEvent
or when accessingHumanEntity.getMainHand()
, or other compatibility related methods.An invocation of this method yields exactly the same result as the expression:
!
supports(int)
9- Since:
- 2.0.0
-
getVersion
public static int getVersion()The current version of the server.- Returns:
- the current server version minor number.
- Since:
- 2.0.0
- See Also:
supports(int)
-
matchXMaterial
Parses the given material name as an XMaterial with a given data value in the string if attached. CheckmatchXMaterialWithData(String)
for more info.- Since:
- 2.0.0
- See Also:
matchXMaterialWithData(String)
,matchDefinedXMaterial(String, byte)
-
matchXMaterial
Parses the given material as an XMaterial.- Throws:
IllegalArgumentException
- may be thrown as an unexpected exception.- Since:
- 2.0.0
- See Also:
matchDefinedXMaterial(String, byte)
,matchXMaterial(ItemStack)
-
matchXMaterial
Parses the given item as an XMaterial using its material and data value (durability) if not a damageable itemItemStack.getDurability()
.- Parameters:
item
- the ItemStack to match.- Returns:
- an XMaterial if matched any.
- Throws:
IllegalArgumentException
- may be thrown as an unexpected exception.- Since:
- 2.0.0
- See Also:
matchXMaterial(Material)
-
matchDefinedXMaterial
@Nonnull protected static Optional<XMaterial> matchDefinedXMaterial(@Nonnull String name, byte data)The main method that parses the given material name and data value as an XMaterial. All the values passed to this method will not be null or empty and are formatted correctly.- Parameters:
name
- the formatted name of the material.data
- the data value of the material. Is always 0 orUNKNOWN_DATA_VALUE
whenXMaterial.Data.ISFLAT
- Returns:
- an XMaterial (with the same data value if specified)
- Since:
- 3.0.0
- See Also:
matchXMaterial(Material)
,matchXMaterial(int, byte)
,matchXMaterial(ItemStack)
-
matchXMaterial
Deprecated.this method loops through all the available materials and matches their ID usinggetId()
which takes a really long time. Plugins should no longer support IDs. If you want, you can make aMap
cache yourself. This method obviously doesn't work for 1.13+ and will not be supported. This is only here for debugging purposes.Gets the XMaterial based on the material's ID (Magic Value) and data value.
You should avoid using this for performance issues.- Parameters:
id
- the ID (Magic value) of the material.data
- the data value of the material.- Returns:
- a parsed XMaterial with the same ID and data value.
- Since:
- 2.0.0
- See Also:
matchXMaterial(ItemStack)
-
format
Attempts to build the string like an enum name. Removes all the spaces, and extra non-English characters. Also removes some config/in-game based strings. While this method is hard to maintain, it's extremely efficient. It's approximately more than x5 times faster than the normal RegEx + String Methods approach for both formatted and unformatted material names.- Parameters:
name
- the material name to modify.- Returns:
- an enum name.
- Since:
- 2.0.0
-
supports
public static boolean supports(int version)Checks if the specified version is the same version or higher than the current server version.- Parameters:
version
- the major version to be checked. "1." is ignored. E.g. 1.12 = 12 | 1.9 = 9- Returns:
- true of the version is equal or higher than the current version.
- Since:
- 2.0.0
-
getLegacy
-
isOneOf
Checks if the list of given material names matches the given base material. Mostly used for configs.Supports
String.contains(java.lang.CharSequence)
CONTAINS:NAME
and Regular ExpressionREGEX:PATTERN
formats.Example:
XMaterial material =
matchXMaterial(ItemStack)
; if (material.isOneOf(plugin.getConfig().getStringList("disabled-items")) return;
CONTAINS
Examples:"CONTAINS:CHEST" -> CHEST, ENDERCHEST, TRAPPED_CHEST -> true
"cOnTaINS:dYe" -> GREEN_DYE, YELLOW_DYE, BLUE_DYE, INK_SACK -> true
REGEX
Examples"REGEX:^.+_.+_.+$" -> Every Material with 3 underlines or more: SHULKER_SPAWN_EGG, SILVERFISH_SPAWN_EGG, SKELETON_HORSE_SPAWN_EGG
"REGEX:^.{1,3}$" -> Material names that have 3 letters only: BED, MAP, AIR
The reason that there are tags for
CONTAINS
andREGEX
is for the performance. Although RegEx patterns are cached in this method, please avoid using theREGEX
tag if you can use theCONTAINS
tag instead. It'll have a huge impact on performance. Please avoid using(capturing groups)
there's no use for them in this case. If you want to use groups, use(?: non-capturing groups)
. It's faster.Want to learn RegEx? You can mess around in RegExr website.
- Parameters:
materials
- the material names to check base material on.- Returns:
- true if one of the given material names is similar to the base material.
- Since:
- 3.1.1
-
setType
@Nonnull public org.bukkit.inventory.ItemStack setType(@Nonnull org.bukkit.inventory.ItemStack item)Sets theMaterial
(and data value on older versions) of an item. Damageable materials will not have their durability changed.Use
parseItem()
instead when creating new ItemStacks.- Parameters:
item
- the item to change its type.- Since:
- 3.0.0
- See Also:
parseItem()
-
toString
Parses an enum name to a user-friendly name. These names will have underlines removed and with each word capitalized.Examples:
EMERALD -> Emerald EMERALD_BLOCK -> Emerald Block ENCHANTED_GOLDEN_APPLE -> Enchanted Golden Apple
-
getId
public int getId()Gets the ID (Magic value) of the material. https://www.minecraftinfo.com/idlist.htmSpigot added material ID support back in 1.16+
- Returns:
- the ID of the material or -1 if it's not a legacy material or the server doesn't support the material.
- Since:
- 2.2.0
- See Also:
matchXMaterial(int, byte)
-
getData
public byte getData()The data value of this material pre-flattening.Can be accessed with
ItemStack.getData()
thenMaterialData#getData()
orItemStack.getDurability()
if not damageable.- Returns:
- data of this material, or 0 if none.
- Since:
- 1.0.0
-
parseItem
@Nullable public org.bukkit.inventory.ItemStack parseItem()Parses an item from this XMaterial. Uses data values on older versions.- Returns:
- an ItemStack with the same material (and data value if in older versions.)
- Since:
- 2.0.0
- See Also:
setType(ItemStack)
-
parseMaterial
@Nullable public org.bukkit.Material parseMaterial()Parses the material of this XMaterial.- Returns:
- the material related to this XMaterial based on the server version.
- Since:
- 1.0.0
-
isSimilar
public boolean isSimilar(@Nonnull org.bukkit.inventory.ItemStack item)Checks if an item has the same material (and data value on older versions).- Parameters:
item
- item to check.- Returns:
- true if the material is the same as the item's material (and data value if on older versions), otherwise false.
- Since:
- 1.0.0
-
isSupported
public boolean isSupported()Checks if this material is supported in the current version. Suggested materials will be ignored.Note that you should use
parseMaterial()
orparseItem()
and check if it's null if you're going to parse and use the material/item later.- Returns:
- true if the material exists in
Material
list. - Since:
- 2.0.0
-
XMaterial.supports(13)
instead.