Uses of Enum Class
org.bukkit.Material
Packages that use Material
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Generalized BlockData classes.
Classes relating to the specialized enhancements to
item stacks
, as part of the meta data
.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes to facilitate
world
generation
implementation.Classes involved in manipulating player inventories and item interactions.
The interfaces used when manipulating extra data can can be stored inside
item stacks
.Isolated components which may form part of item meta.
Classes that represents various voxel types and states.
Classes dedicated to handling data pack information.
Interfaces used to manage the client side score display system.
-
Uses of Material in com.destroystokyo.paper
Methods in com.destroystokyo.paper that return types with arguments of type MaterialMethods in com.destroystokyo.paper with parameters of type MaterialModifier and TypeMethodDescriptionboolean
Constructors in com.destroystokyo.paper with parameters of type MaterialModifierConstructorDescriptionMaterialSetTag
(@NotNull Material... materials) Deprecated.Use NamespacedKey version of constructorMaterialSetTag
(@Nullable NamespacedKey key, @NotNull Material... materials) Constructor parameters in com.destroystokyo.paper with type arguments of type MaterialModifierConstructorDescriptionMaterialSetTag
(@NotNull Collection<Material> materials) Deprecated.Use NamespacedKey version of constructorMaterialSetTag
(@NotNull Predicate<Material> filter) Deprecated.Use NamespacedKey version of constructorMaterialSetTag
(@Nullable NamespacedKey key, @NotNull Collection<Material> materials) MaterialSetTag
(@Nullable NamespacedKey key, @NotNull Collection<Material> materials, @NotNull Predicate<Material>... globalPredicates) MaterialSetTag
(@Nullable NamespacedKey key, @NotNull Predicate<Material> filter) -
Uses of Material in com.destroystokyo.paper.event.block
Methods in com.destroystokyo.paper.event.block that return MaterialModifier and TypeMethodDescriptionAnvilDamagedEvent.DamageState.getMaterial()
Get block material of this stateMethods in com.destroystokyo.paper.event.block with parameters of type MaterialModifier and TypeMethodDescriptionGet damaged state by block material -
Uses of Material in com.destroystokyo.paper.event.player
Methods in com.destroystokyo.paper.event.player that return types with arguments of type MaterialModifier and TypeMethodDescriptionPlayerArmorChangeEvent.SlotType.getTypes()
Deprecated.Gets an immutable set of all allowed material types that can be placed in an armor slot.Methods in com.destroystokyo.paper.event.player with parameters of type MaterialModifier and TypeMethodDescriptionPlayerArmorChangeEvent.SlotType.getByMaterial
(Material material) Deprecated.Gets the type of slot via the specified materialstatic boolean
PlayerArmorChangeEvent.SlotType.isEquipable
(Material material) Deprecated.Gets whether this material can be equipped to a slot -
Uses of Material in io.papermc.paper.event.player
Methods in io.papermc.paper.event.player that return MaterialModifier and TypeMethodDescriptionPlayerItemCooldownEvent.getType()
Get the material of the item affected by the cooldown.Constructors in io.papermc.paper.event.player with parameters of type MaterialModifierConstructorDescriptionPlayerItemCooldownEvent
(Player player, Material type, NamespacedKey cooldownGroup, int cooldown) -
Uses of Material in org.bukkit
Fields in org.bukkit with type parameters of type MaterialModifier and TypeFieldDescriptionTag.ACACIA_LOGS
Tag.AIR
Tag.ALL_SIGNS
Tag.ANVIL
Deprecated.Tag.AZALEA_GROWS_ON
Tag.BAMBOO_BLOCKS
Tag.BANNERS
Tag.BEDS
Tag.BEE_ATTRACTIVE
Tag.BEE_GROWABLES
Tag.BEEHIVES
Tag.BIRCH_LOGS
Tag.BUTTONS
Tag.CAMPFIRES
Tag.CANDLE_CAKES
Tag.CANDLES
Tag.CARPETS
Deprecated.Tag.CAULDRONS
Tag.CAVE_VINES
Tag.CHERRY_LOGS
Tag.CLIMBABLE
Tag.COAL_ORES
Tag.CONCRETE_POWDER
Tag.COPPER_ORES
Tag.CORAL_BLOCKS
Tag.CORAL_PLANTS
Tag.CORALS
Tag.CRIMSON_STEMS
Tag.CROPS
Tag.DARK_OAK_LOGS
Deprecated, for removal: This API element is subject to removal in a future version.partially replaced byTag.DRY_VEGETATION_MAY_PLACE_ON
Tag.DIAMOND_ORES
Tag.DIRT
Tag.DOORS
Tag.DRAGON_IMMUNE
Deprecated, for removal: This API element is subject to removal in a future version.Tag.EDIBLE_FOR_SHEEP
Tag.EMERALD_ORES
Tag.FENCE_GATES
Tag.FENCES
Tag.FIRE
Tag.FLOWER_POTS
Tag.FLOWERS
Tag.FOX_FOOD
Deprecated.Tag.GOLD_ORES
Tag.ICE
Tag.IMPERMEABLE
Tag.INFINIBURN_END
Tag.IRON_ORES
Tag.ITEMS_ANVIL
Tag.ITEMS_ARROWS
Tag.ITEMS_AXES
Tag.ITEMS_BANNERS
Tag.ITEMS_BEDS
Tag.ITEMS_BEE_FOOD
Tag.ITEMS_BIRCH_LOGS
Tag.ITEMS_BOATS
Tag.ITEMS_BUNDLES
Tag.ITEMS_BUTTONS
Tag.ITEMS_CAMEL_FOOD
Tag.ITEMS_CANDLES
Tag.ITEMS_CAT_FOOD
Tag.ITEMS_COAL_ORES
Tag.ITEMS_COALS
Tag.ITEMS_COMPASSES
Tag.ITEMS_COW_FOOD
Tag.ITEMS_DIRT
Tag.ITEMS_DOORS
Tag.ITEMS_DYEABLE
Tag.ITEMS_EGGS
Tag.ITEMS_FENCES
Tag.ITEMS_FISHES
Tag.ITEMS_FLOWERS
Tag.ITEMS_FOOT_ARMOR
Tag.ITEMS_FOX_FOOD
Tag.ITEMS_FROG_FOOD
Deprecated, for removal: This API element is subject to removal in a future version.partially replaced byTag.ITEMS_STONE_CRAFTING_MATERIALS
Tag.ITEMS_GOAT_FOOD
Tag.ITEMS_GOLD_ORES
Tag.ITEMS_HEAD_ARMOR
Tag.ITEMS_HOES
Tag.ITEMS_HORSE_FOOD
Tag.ITEMS_IRON_ORES
Tag.ITEMS_LAPIS_ORES
Tag.ITEMS_LEAVES
Tag.ITEMS_LEG_ARMOR
Tag.ITEMS_LLAMA_FOOD
Tag.ITEMS_LOGS
Tag.ITEMS_MEAT
Deprecated, for removal: This API element is subject to removal in a future version.Tag.ITEMS_OAK_LOGS
Tag.ITEMS_PANDA_FOOD
Tag.ITEMS_PICKAXES
Tag.ITEMS_PIG_FOOD
Tag.ITEMS_PLANKS
Tag.ITEMS_RAILS
Tag.ITEMS_SAND
Tag.ITEMS_SAPLINGS
Tag.ITEMS_SHEEP_FOOD
Tag.ITEMS_SHOVELS
Tag.ITEMS_SIGNS
Tag.ITEMS_SKULLS
Tag.ITEMS_SLABS
Tag.ITEMS_STAIRS
Tag.ITEMS_SWORDS
Tag.ITEMS_TERRACOTTA
Tag.ITEMS_TOOLS
Deprecated, for removal: This API element is subject to removal in a future version.removed in Minecraft 1.20.5.Tag.ITEMS_TRAPDOORS
Tag.ITEMS_WALLS
Tag.ITEMS_WOLF_FOOD
Tag.ITEMS_WOOL
Tag.JUNGLE_LOGS
Tag.LAPIS_ORES
Tag.LEAVES
Tag.LOGS
Tag.LOGS_THAT_BURN
Tag.MANGROVE_LOGS
Registry.MATERIAL
Server materials.Tag.MINEABLE_AXE
Tag.MINEABLE_HOE
Tag.MINEABLE_PICKAXE
Tag.MINEABLE_SHOVEL
Tag.MOSS_REPLACEABLE
Tag.NEEDS_IRON_TOOL
Tag.NEEDS_STONE_TOOL
Tag.NYLIUM
Tag.OAK_LOGS
Tag.PALE_OAK_LOGS
Tag.PIGLIN_FOOD
Deprecated.Tag.PLANKS
Tag.PORTALS
Tag.PRESSURE_PLATES
Tag.RAILS
Tag.REDSTONE_ORES
Tag.REPLACEABLE
Tag.SAND
Tag.SAPLINGS
Tag.SHULKER_BOXES
Tag.SIGNS
Tag.SLABS
Tag.SMALL_FLOWERS
Tag.SMELTS_TO_GLASS
Tag.SNAPS_GOAT_HORN
Tag.SNOW
Tag.SPRUCE_LOGS
Tag.STAIRS
Tag.STANDING_SIGNS
Tag.STONE_BRICKS
Tag.STONE_BUTTONS
Tag.SWORD_EFFICIENT
Tag.TERRACOTTA
Tag.TRAPDOORS
Tag.VALID_SPAWN
Tag.WALL_CORALS
Tag.WALL_SIGNS
Tag.WALLS
Tag.WARPED_STEMS
Tag.WART_BLOCKS
Tag.WITHER_IMMUNE
Tag.WOODEN_BUTTONS
Tag.WOODEN_DOORS
Tag.WOODEN_FENCES
Tag.WOODEN_SLABS
Tag.WOODEN_STAIRS
Tag.WOODEN_TRAPDOORS
Tag.WOOL
Tag.WOOL_CARPETS
Methods in org.bukkit that return MaterialModifier and TypeMethodDescriptionUnsafeValues.fromLegacy
(Material material) Deprecated.UnsafeValues.fromLegacy
(MaterialData material) Deprecated.UnsafeValues.fromLegacy
(MaterialData material, boolean itemPriority) Deprecated.ChunkSnapshot.getBlockType
(int x, int y, int z) Get block type for block at corresponding coordinate in the chunkMaterial.getCraftingRemainingItem()
Determines the remaining item in a crafting grid after crafting with this ingredient.Material.getMaterial
(@NotNull String name) Attempts to get the Material with the given name.Material.getMaterial
(@NotNull String name, boolean legacyName) Attempts to get the Material with the given name.UnsafeValues.getMaterial
(String material, int version) Deprecated.RegionAccessor.getType
(int x, int y, int z) Gets the type of the block at the given coordinates.Gets the type of the block at the givenLocation
.Material.matchMaterial
(@NotNull String name) Attempts to match the Material with the given name.Material.matchMaterial
(@NotNull String name, boolean legacyName) Attempts to match the Material with the given name.Deprecated.static Material
Returns the enum constant of this class with the specified name.static Material[]
Material.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.bukkit that return types with arguments of type MaterialModifier and TypeMethodDescriptionWorld.getInfiniburn()
Gets the collection of materials that burn infinitely in this world.Methods in org.bukkit with parameters of type MaterialModifier and TypeMethodDescriptionBukkit.createBlockData
(@NotNull Material material) Creates a newBlockData
instance for the specified Material, with all properties initialized to unspecified defaults.Creates a newBlockData
instance for the specified Material, with all properties initialized to unspecified defaults.Bukkit.createBlockData
(@Nullable Material material, @Nullable String data) Creates a newBlockData
instance for the specified Material, with all properties initialized to unspecified defaults, except for those provided in data.Server.createBlockData
(@NotNull Material material) Creates a newBlockData
instance for the specified Material, with all properties initialized to unspecified defaults.Creates a newBlockData
instance for the specified Material, with all properties initialized to unspecified defaults.Server.createBlockData
(@Nullable Material material, @Nullable String data) Creates a newBlockData
instance for the specified Material, with all properties initialized to unspecified defaults, except for those provided in data.void
OfflinePlayer.decrementStatistic
(Statistic statistic, Material material) Decrements the given statistic for this player for the given material.void
OfflinePlayer.decrementStatistic
(Statistic statistic, Material material, int amount) Decrements the given statistic for this player for the given material.UnsafeValues.fromLegacy
(Material material) Deprecated.UnsafeValues.fromLegacy
(Material material, byte data) Deprecated.UnsafeValues.getBlockTranslationKey
(Material material) Deprecated, for removal: This API element is subject to removal in a future version.UnsafeValues.getCreativeCategory
(Material material) Deprecated, for removal: This API element is subject to removal in a future version.UnsafeValues.getDefaultAttributeModifiers
(Material material, EquipmentSlot slot) Deprecated, for removal: This API element is subject to removal in a future version.UnsafeValues.getItemTranslationKey
(Material material) Deprecated, for removal: This API element is subject to removal in a future version.int
OfflinePlayer.getStatistic
(Statistic statistic, Material material) Gets the value of the given statistic for this player.void
OfflinePlayer.incrementStatistic
(Statistic statistic, Material material) Increments the given statistic for this player for the given material.void
OfflinePlayer.incrementStatistic
(Statistic statistic, Material material, int amount) Increments the given statistic for this player for the given material.void
OfflinePlayer.setStatistic
(Statistic statistic, Material material, int newValue) Sets the given statistic for this player for the given material.void
Sets theMaterial
at the given coordinates.void
World.spawnFallingBlock
(@NotNull Location location, @NotNull Material material, byte data) Deprecated, for removal: This API element is subject to removal in a future version.Magic value.Deprecated. -
Uses of Material in org.bukkit.block
Methods in org.bukkit.block that return MaterialModifier and TypeMethodDescriptionBlockType.asMaterial()
Deprecated.only for internal useJukebox.getPlaying()
Gets the record inserted into the jukebox.DecoratedPot.getSherd
(@NotNull DecoratedPot.Side side) Get the sherd on the provided side.Block.getType()
Gets the type of this blockBlockState.getType()
Gets the type of this block state.Methods in org.bukkit.block that return types with arguments of type MaterialModifier and TypeMethodDescriptionDecoratedPot.getShards()
Deprecated.in favor ofDecoratedPot.getSherds()
DecoratedPot.getSherds()
Gets a Map of all sides on this decorated pot and the sherds on them.Methods in org.bukkit.block with parameters of type MaterialModifier and TypeMethodDescriptionvoid
Jukebox.setPlaying
(@Nullable Material record) Sets the record being played.void
DecoratedPot.setSherd
(@NotNull DecoratedPot.Side side, @Nullable Material sherd) Set the sherd on the provided side.void
Sets the type of this blockvoid
Sets the type of this block
Note that applyPhysics = false is not in general safe.void
Sets the type of this block state. -
Uses of Material in org.bukkit.block.data
Methods in org.bukkit.block.data that return MaterialModifier and TypeMethodDescriptionBlockData.getMaterial()
Get the Material represented by this block data.BlockData.getPlacementMaterial()
Gets the material that a player would use to place this block. -
Uses of Material in org.bukkit.enchantments
Methods in org.bukkit.enchantments with parameters of type Material -
Uses of Material in org.bukkit.entity
Methods in org.bukkit.entity that return MaterialModifier and TypeMethodDescriptionBoat.getBoatMaterial()
Gets theMaterial
that represents this Boat type.Boat.Type.getMaterial()
Deprecated.Gets the material of the boat type.FallingBlock.getMaterial()
Deprecated.Minecart.getMinecartMaterial()
Gets theMaterial
that represents this Minecart type.Steerable.getSteerMaterial()
Get the material used to steer this entity when ridden by a player.Methods in org.bukkit.entity that return types with arguments of type MaterialModifier and TypeMethodDescriptionPiglin.getBarterList()
Returns a immutable set of materials the piglins will barter with.Piglin.getInterestList()
Returns a immutable set of materials the piglins will pickup.Methods in org.bukkit.entity with parameters of type MaterialModifier and TypeMethodDescriptionboolean
Piglin.addBarterMaterial
(@NotNull Material material) Adds a material to the allowed list of materials to barter with.boolean
Piglin.addMaterialOfInterest
(@NotNull Material material) Adds a material the piglin will pickup and store in his inventory.int
HumanEntity.getCooldown
(Material material) Get the cooldown time in ticks remaining for the specified material.boolean
HumanEntity.hasCooldown
(Material material) Check whether a cooldown is active on the specified material.boolean
Animals.isBreedItem
(@NotNull Material material) Check if the provided ItemStack is the correct item used for breeding this entity..boolean
Piglin.removeBarterMaterial
(@NotNull Material material) Removes a material from the allowed list of materials to barter with.boolean
Piglin.removeMaterialOfInterest
(@NotNull Material material) Removes a material from the list of materials the piglin will pickup.void
Player.sendBlockChange
(Location loc, Material material, byte data) Deprecated.Magic valuevoid
HumanEntity.setCooldown
(Material material, int ticks) Set a cooldown on the specified material for a certain amount of ticks.Method parameters in org.bukkit.entity with type arguments of type MaterialModifier and TypeMethodDescriptionLivingEntity.getLastTwoTargetBlocks
(@Nullable Set<Material> transparent, int maxDistance) Gets the last two blocks along the living entity's line of sight.LivingEntity.getLineOfSight
(@Nullable Set<Material> transparent, int maxDistance) Gets all blocks along the living entity's line of sight.LivingEntity.getTargetBlock
(@Nullable Set<Material> transparent, int maxDistance) Gets the block that the living entity has targeted. -
Uses of Material in org.bukkit.event.block
Methods in org.bukkit.event.block that return MaterialModifier and TypeMethodDescriptionBlockPhysicsEvent.getChangedType()
Gets the type of block that changed, causing this event.BlockCanBuildEvent.getMaterial()
Gets the Material that we are trying to place. -
Uses of Material in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return Material -
Uses of Material in org.bukkit.event.inventory
Methods in org.bukkit.event.inventory that return MaterialModifier and TypeMethodDescriptionFurnaceExtractEvent.getItemType()
Get the Material of the item being retrievedConstructors in org.bukkit.event.inventory with parameters of type Material -
Uses of Material in org.bukkit.event.player
Methods in org.bukkit.event.player that return MaterialModifier and TypeMethodDescriptionPlayerBucketEvent.getBucket()
Returns the bucket used in this eventPlayerInteractEvent.getMaterial()
Convenience method.PlayerStatisticIncrementEvent.getMaterial()
Gets the Material ifPlayerStatisticIncrementEvent.getStatistic()
is a block or item statistic otherwise returnsnull
.Constructors in org.bukkit.event.player with parameters of type MaterialModifierConstructorDescriptionPlayerBucketEmptyEvent
(@NotNull Player player, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) Deprecated, for removal: This API element is subject to removal in a future version.PlayerBucketEmptyEvent
(@NotNull Player player, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) Deprecated, for removal: This API element is subject to removal in a future version.PlayerBucketEmptyEvent
(@NotNull Player player, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerBucketEvent
(@NotNull Player player, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) Deprecated, for removal: This API element is subject to removal in a future version.PlayerBucketEvent
(@NotNull Player player, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) Deprecated, for removal: This API element is subject to removal in a future version.PlayerBucketEvent
(@NotNull Player player, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerBucketFillEvent
(@NotNull Player player, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) Deprecated, for removal: This API element is subject to removal in a future version.PlayerBucketFillEvent
(@NotNull Player player, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) Deprecated, for removal: This API element is subject to removal in a future version.PlayerBucketFillEvent
(@NotNull Player player, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerStatisticIncrementEvent
(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue, @NotNull Material material) -
Uses of Material in org.bukkit.generator
Methods in org.bukkit.generator that return MaterialModifier and TypeMethodDescriptionChunkGenerator.ChunkData.getType
(int x, int y, int z) Get the type of the block at x, y, z.Methods in org.bukkit.generator with parameters of type MaterialModifier and TypeMethodDescriptionvoid
Set the block at x,y,z in the chunk data to material.void
ChunkGenerator.ChunkData.setRegion
(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull Material material) Set a region of this chunk from xMin, yMin, zMin (inclusive) to xMax, yMax, zMax (exclusive) to material. -
Uses of Material in org.bukkit.inventory
Methods in org.bukkit.inventory that return MaterialModifier and TypeMethodDescriptionItemType.asMaterial()
Deprecated.only for internal useItemFactory.getSpawnEgg
(@NotNull EntityType type) Gets aMaterial
representing the spawn egg for the providedEntityType
.ItemStack.getType()
Gets the type of this itemMethods in org.bukkit.inventory that return types with arguments of type MaterialMethods in org.bukkit.inventory with parameters of type MaterialModifier and TypeMethodDescriptionShapelessRecipe.addIngredient
(int count, @NotNull Material ingredient) Adds multiples of the specified ingredient.ShapelessRecipe.addIngredient
(int count, @NotNull Material ingredient, int rawdata) Deprecated.Magic valueShapelessRecipe.addIngredient
(@NotNull Material ingredient) Adds the specified ingredient.ShapelessRecipe.addIngredient
(@NotNull Material ingredient, int rawdata) Deprecated.Magic valueReturns a HashMap with all slots and ItemStacks in the inventory with the given Material.Returns an appropriate item meta for the specified material.boolean
Checks if the inventory contains any ItemStacks with the given material.boolean
Checks if the inventory contains any ItemStacks with the given material, adding to at least the minimum amount specified.int
Finds the first slot in the inventory containing an ItemStack with the given materialItemFactory.getItemMeta
(@NotNull Material material) This creates a new item meta for the material.boolean
ItemFactory.isApplicable
(@Nullable ItemMeta meta, @Nullable Material material) This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified Material.Creates an itemstack with the specified item type and a count of 1.Creates an itemstack with the specified item type and count.void
Removes all stacks in the inventory matching the given material.ShapelessRecipe.removeIngredient
(int count, @NotNull Material ingredient) Removes multiple instances of an ingredient from the list.ShapelessRecipe.removeIngredient
(int count, @NotNull Material ingredient, int rawdata) Deprecated.Magic valueShapelessRecipe.removeIngredient
(@NotNull Material ingredient) Removes an ingredient from the list.ShapelessRecipe.removeIngredient
(@NotNull Material ingredient, int rawdata) Deprecated.Magic valueShapedRecipe.setIngredient
(char key, @NotNull Material ingredient) Sets the material that a character in the recipe shape refers to.ShapedRecipe.setIngredient
(char key, @NotNull Material ingredient, int raw) Deprecated.Magic valueSets the input of this cooking recipe.Deprecated, for removal: This API element is subject to removal in a future version.Magic valueSets the input of this Stonecutting recipe.void
Deprecated.Setting the material type of ItemStacks is no longer supported.Creates a new ItemStack with the specified Material type, where the item count and item meta is preserved.Constructors in org.bukkit.inventory with parameters of type MaterialModifierConstructorDescriptionBlastingRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) CampfireRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) CookingRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) Create a cooking recipe to craft the specified ItemStack.FurnaceRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, int data, float experience, int cookingTime) Deprecated, for removal: This API element is subject to removal in a future version.FurnaceRecipe
(@NotNull ItemStack result, @NotNull Material source) Deprecated, for removal: This API element is subject to removal in a future version.FurnaceRecipe
(@NotNull ItemStack result, @NotNull Material source, int data) Deprecated, for removal: This API element is subject to removal in a future version.Defaults stack size to 1, with no extra data.An item stack with no extra data.Deprecated.Deprecated, for removal: This API element is subject to removal in a future version.this method uses an ambiguous data byte objectMaterialChoice
(@NotNull Material choice) MaterialChoice
(@NotNull Material... choices) SmokingRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) StonecuttingRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source) Create a Stonecutting recipe to craft the specified ItemStack.TransmuteRecipe
(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a transmute recipe to produce a result of the specified type.Constructor parameters in org.bukkit.inventory with type arguments of type MaterialModifierConstructorDescriptionMaterialChoice
(@NotNull List<Material> choices) MaterialChoice
(@NotNull Tag<Material> choices) Constructs a MaterialChoice with the current values of the specified tag. -
Uses of Material in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return types with arguments of type MaterialModifier and TypeMethodDescriptionItemMeta.getCanDestroy()
Deprecated, for removal: This API element is subject to removal in a future version.this API is unsupported and will be replaced, its usage may result in data loss related to place/destroy predicates.ItemMeta.getCanPlaceOn()
Deprecated, for removal: This API element is subject to removal in a future version.this API is unsupported and will be replaced, its usage may result in data loss related to place/destroy predicates.Methods in org.bukkit.inventory.meta with parameters of type MaterialModifier and TypeMethodDescriptionBlockDataMeta.getBlockData
(@NotNull Material material) Returns the currently attached block data for this item or creates a new one if one doesn't exist.Method parameters in org.bukkit.inventory.meta with type arguments of type MaterialModifier and TypeMethodDescriptionvoid
ItemMeta.setCanDestroy
(Set<Material> canDestroy) Deprecated, for removal: This API element is subject to removal in a future version.this API is unsupported and will be replaced, its usage may result in data loss related to place/destroy predicates.void
ItemMeta.setCanPlaceOn
(Set<Material> canPlaceOn) Deprecated, for removal: This API element is subject to removal in a future version.this API is unsupported and will be replaced, its usage may result in data loss related to place/destroy predicates. -
Uses of Material in org.bukkit.inventory.meta.components
Methods in org.bukkit.inventory.meta.components that return types with arguments of type MaterialModifier and TypeMethodDescriptionToolComponent.ToolRule.getBlocks()
Get a collection of the block types to which this tool rule applies.Methods in org.bukkit.inventory.meta.components with parameters of type MaterialModifier and TypeMethodDescriptionToolComponent.addRule
(@NotNull Material block, @Nullable Float speed, @Nullable Boolean correctForDrops) Add a new rule to this tool component, which provides further information about a specific block type.void
Set the block type to which this rule applies.Method parameters in org.bukkit.inventory.meta.components with type arguments of type MaterialModifier and TypeMethodDescriptionToolComponent.addRule
(@NotNull Collection<Material> blocks, @Nullable Float speed, @Nullable Boolean correctForDrops) Add a new rule to this tool component, which provides further information about a collection of block types.ToolComponent.addRule
(@NotNull Tag<Material> tag, @Nullable Float speed, @Nullable Boolean correctForDrops) Add a new rule to this tool component, which provides further information about a collection of block types represented by a blockTag
.void
ToolComponent.ToolRule.setBlocks
(@NotNull Collection<Material> blocks) Set the block types to which this rule applies.void
Set the block types (represented as a blockTag
) to which this rule applies. -
Uses of Material in org.bukkit.material
Fields in org.bukkit.material declared as MaterialModifier and TypeFieldDescriptionprotected static final Material
Crops.DEFAULT_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.protected static final Material
Leaves.DEFAULT_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.protected static final Material
Tree.DEFAULT_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.protected static final Material
Wood.DEFAULT_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.protected static final Material
WoodenStep.DEFAULT_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.Methods in org.bukkit.material that return MaterialModifier and TypeMethodDescriptionMaterialData.getItemType()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the Material that this MaterialData representsTexturedMaterial.getMaterial()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the current Material this block is made ofstatic Material
Door.getWoodDoorOfSpecies
(TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Returns the item type of a wooden door for the given tree species.Methods in org.bukkit.material that return types with arguments of type MaterialModifier and TypeMethodDescriptionMonsterEggs.getTextures()
Deprecated, for removal: This API element is subject to removal in a future version.SmoothBrick.getTextures()
Deprecated, for removal: This API element is subject to removal in a future version.Step.getTextures()
Deprecated, for removal: This API element is subject to removal in a future version.TexturedMaterial.getTextures()
Deprecated, for removal: This API element is subject to removal in a future version.Retrieve a list of possible textures.Methods in org.bukkit.material with parameters of type MaterialModifier and TypeMethodDescriptionvoid
TexturedMaterial.setMaterial
(Material material) Deprecated, for removal: This API element is subject to removal in a future version.Sets the material this block is made ofConstructors in org.bukkit.material with parameters of type MaterialModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueCocoaPlant
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueComparator
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.Comparator
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a crop block of the given type and in the seeded stateDeprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a crop block of the given type and in the given growth stateDetectorRail
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.DetectorRail
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDirectionalContainer
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.DirectionalContainer
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Constructs the top half of door of the given material type and with the hinge on the left or rightDeprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs the bottom half of a door of the given material type, facing the specified direction and set to closedDeprecated, for removal: This API element is subject to removal in a future version.Constructs the bottom half of a door of the given material type, facing the specified direction and set to open or closedDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueEnderChest
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.EnderChest
(Material type, byte data) Deprecated.Magic valueExtendedRails
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.ExtendedRails
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueFurnaceAndDispenser
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.FurnaceAndDispenser
(Material type, byte data) Deprecated.Magic valueDeprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type.Deprecated.Magic valueLeaves
(Material type, TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type and tree species.Leaves
(Material type, TreeSpecies species, boolean isDecayable) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a leaf block of the given type and tree species and flag for whether this leaf block will disappear when too far from a log.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueMaterialData
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.MaterialData
(Material type, byte data) Deprecated.Magic valueMonsterEggs
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.MonsterEggs
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a brown/red mushroom block with all sides set to pores.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.Mushroom
(Material shroom, MushroomBlockTexture texture) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a brown/red mushroom block with the specified textures.NetherWarts
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.NetherWarts
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valuePistonBaseMaterial
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.PistonBaseMaterial
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.PistonExtensionMaterial
(Material type, byte data) Deprecated.Magic valuePoweredRail
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.PoweredRail
(Material type, byte data) Deprecated.Magic valuePressurePlate
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.PressurePlate
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueRedstoneTorch
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.RedstoneTorch
(Material type, byte data) Deprecated.Magic valueRedstoneWire
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.RedstoneWire
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given type.Deprecated.Magic valueSapling
(Material type, TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given type and tree species.Sapling
(Material type, TreeSpecies species, boolean isInstantGrowable) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a sapling of the given type and tree species and if is it instant growableDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.SimpleAttachableMaterialData
(Material type, byte data) Deprecated.Magic valueSimpleAttachableMaterialData
(Material type, BlockFace direction) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueSmoothBrick
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.SmoothBrick
(Material type, byte data) Deprecated.Magic valueDeprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.TexturedMaterial
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type.Deprecated.Magic valueTree
(Material type, TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type and tree species.Tree
(Material type, TreeSpecies species, BlockFace dir) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a tree block of the given type and tree species, and facing the given direction.Deprecated.Magic valueTripwireHook
(Material type, byte data) Deprecated.Magic valueDeprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a wood block of the given type.Deprecated.Magic valueWood
(Material type, TreeSpecies species) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a wood block of the given type and tree species.WoodenStep
(Material type, byte data) Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic value -
Uses of Material in org.bukkit.packs
Methods in org.bukkit.packs with parameters of type MaterialModifier and TypeMethodDescriptionboolean
DataPackManager.isEnabledByFeature
(@NotNull Material material, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the Material is enabled for use by the features in World. -
Uses of Material in org.bukkit.scoreboard
Methods in org.bukkit.scoreboard with parameters of type Material