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 TypeMethodDescriptionbooleanConstructors 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 booleanPlayerArmorChangeEvent.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_LOGSTag.AIRTag.ALL_SIGNSTag.ANVILDeprecated.Tag.AZALEA_GROWS_ONTag.BAMBOO_BLOCKSTag.BANNERSTag.BEDSTag.BEE_ATTRACTIVETag.BEE_GROWABLESTag.BEEHIVESTag.BIRCH_LOGSTag.BUTTONSTag.CAMPFIRESTag.CANDLE_CAKESTag.CANDLESTag.CARPETSDeprecated.Tag.CAULDRONSTag.CAVE_VINESTag.CHERRY_LOGSTag.CLIMBABLETag.COAL_ORESTag.CONCRETE_POWDERTag.COPPER_ORESTag.CORAL_BLOCKSTag.CORAL_PLANTSTag.CORALSTag.CRIMSON_STEMSTag.CROPSTag.DARK_OAK_LOGSDeprecated, for removal: This API element is subject to removal in a future version.partially replaced byTag.DRY_VEGETATION_MAY_PLACE_ONTag.DIAMOND_ORESTag.DIRTTag.DOORSTag.DRAGON_IMMUNEDeprecated, for removal: This API element is subject to removal in a future version.Tag.EDIBLE_FOR_SHEEPTag.EMERALD_ORESTag.FENCE_GATESTag.FENCESTag.FIRETag.FLOWER_POTSTag.FLOWERSTag.FOX_FOODDeprecated.Tag.GOLD_ORESTag.ICETag.IMPERMEABLETag.INFINIBURN_ENDTag.IRON_ORESTag.ITEMS_ANVILTag.ITEMS_ARROWSTag.ITEMS_AXESTag.ITEMS_BANNERSTag.ITEMS_BEDSTag.ITEMS_BEE_FOODTag.ITEMS_BIRCH_LOGSTag.ITEMS_BOATSTag.ITEMS_BUNDLESTag.ITEMS_BUTTONSTag.ITEMS_CAMEL_FOODTag.ITEMS_CANDLESTag.ITEMS_CAT_FOODTag.ITEMS_COAL_ORESTag.ITEMS_COALSTag.ITEMS_COMPASSESTag.ITEMS_COW_FOODTag.ITEMS_DIRTTag.ITEMS_DOORSTag.ITEMS_DYEABLETag.ITEMS_EGGSTag.ITEMS_FENCESTag.ITEMS_FISHESTag.ITEMS_FLOWERSTag.ITEMS_FOOT_ARMORTag.ITEMS_FOX_FOODTag.ITEMS_FROG_FOODDeprecated, for removal: This API element is subject to removal in a future version.partially replaced byTag.ITEMS_STONE_CRAFTING_MATERIALSTag.ITEMS_GOAT_FOODTag.ITEMS_GOLD_ORESTag.ITEMS_HARNESSESTag.ITEMS_HEAD_ARMORTag.ITEMS_HOESTag.ITEMS_HORSE_FOODTag.ITEMS_IRON_ORESTag.ITEMS_LAPIS_ORESTag.ITEMS_LEAVESTag.ITEMS_LEG_ARMORTag.ITEMS_LLAMA_FOODTag.ITEMS_LOGSTag.ITEMS_MEATDeprecated, for removal: This API element is subject to removal in a future version.Tag.ITEMS_OAK_LOGSTag.ITEMS_PANDA_FOODTag.ITEMS_PICKAXESTag.ITEMS_PIG_FOODTag.ITEMS_PLANKSTag.ITEMS_RAILSTag.ITEMS_SANDTag.ITEMS_SAPLINGSTag.ITEMS_SHEEP_FOODTag.ITEMS_SHOVELSTag.ITEMS_SIGNSTag.ITEMS_SKULLSTag.ITEMS_SLABSTag.ITEMS_STAIRSTag.ITEMS_SWORDSTag.ITEMS_TERRACOTTATag.ITEMS_TOOLSDeprecated, for removal: This API element is subject to removal in a future version.removed in Minecraft 1.20.5.Tag.ITEMS_TRAPDOORSTag.ITEMS_WALLSTag.ITEMS_WOLF_FOODTag.ITEMS_WOOLTag.JUNGLE_LOGSTag.LAPIS_ORESTag.LEAVESTag.LOGSTag.LOGS_THAT_BURNTag.MANGROVE_LOGSRegistry.MATERIALServer materials.Tag.MINEABLE_AXETag.MINEABLE_HOETag.MINEABLE_PICKAXETag.MINEABLE_SHOVELTag.MOSS_REPLACEABLETag.NEEDS_IRON_TOOLTag.NEEDS_STONE_TOOLTag.NYLIUMTag.OAK_LOGSTag.PALE_OAK_LOGSTag.PIGLIN_FOODDeprecated.Tag.PLANKSDeprecated, for removal: This API element is subject to removal in a future version.Tag.PORTALSTag.PRESSURE_PLATESTag.RAILSTag.REDSTONE_ORESTag.REPLACEABLETag.SANDTag.SAPLINGSTag.SHULKER_BOXESTag.SIGNSTag.SLABSTag.SMALL_FLOWERSTag.SMELTS_TO_GLASSTag.SNAPS_GOAT_HORNTag.SNOWTag.SPRUCE_LOGSTag.STAIRSTag.STANDING_SIGNSTag.STONE_BRICKSTag.STONE_BUTTONSTag.SWORD_EFFICIENTTag.TERRACOTTATag.TRAPDOORSTag.VALID_SPAWNTag.WALL_CORALSTag.WALL_SIGNSTag.WALLSTag.WARPED_STEMSTag.WART_BLOCKSTag.WITHER_IMMUNETag.WOODEN_BUTTONSTag.WOODEN_DOORSTag.WOODEN_FENCESTag.WOODEN_SLABSTag.WOODEN_STAIRSTag.WOODEN_TRAPDOORSTag.WOOLTag.WOOL_CARPETSMethods 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 MaterialReturns 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 newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.Bukkit.createBlockData(@Nullable Material material, @Nullable String data) Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults, except for those provided in data.Server.createBlockData(@NotNull Material material) Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults.Server.createBlockData(@Nullable Material material, @Nullable String data) Creates a newBlockDatainstance for the specified Material, with all properties initialized to unspecified defaults, except for those provided in data.voidOfflinePlayer.decrementStatistic(Statistic statistic, Material material) Decrements the given statistic for this player for the given material.voidOfflinePlayer.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.intOfflinePlayer.getStatistic(Statistic statistic, Material material) Gets the value of the given statistic for this player.voidOfflinePlayer.incrementStatistic(Statistic statistic, Material material) Increments the given statistic for this player for the given material.voidOfflinePlayer.incrementStatistic(Statistic statistic, Material material, int amount) Increments the given statistic for this player for the given material.voidOfflinePlayer.setStatistic(Statistic statistic, Material material, int newValue) Sets the given statistic for this player for the given material.voidSets theMaterialat the given coordinates.voidWorld.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 TypeMethodDescriptionvoidJukebox.setPlaying(@Nullable Material record) Sets the record being played.voidDecoratedPot.setSherd(@NotNull DecoratedPot.Side side, @Nullable Material sherd) Set the sherd on the provided side.voidSets the type of this blockvoidSets the type of this block
Note that applyPhysics = false is not in general safe.voidSets 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 theMaterialthat represents this Boat type.Boat.Type.getMaterial()Deprecated.Gets the material of the boat type.FallingBlock.getMaterial()Deprecated.Minecart.getMinecartMaterial()Gets theMaterialthat 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 TypeMethodDescriptionbooleanPiglin.addBarterMaterial(@NotNull Material material) Adds a material to the allowed list of materials to barter with.booleanPiglin.addMaterialOfInterest(@NotNull Material material) Adds a material the piglin will pickup and store in his inventory.intHumanEntity.getCooldown(Material material) Get the cooldown time in ticks remaining for the specified material.booleanHumanEntity.hasCooldown(Material material) Check whether a cooldown is active on the specified material.booleanAnimals.isBreedItem(@NotNull Material material) Check if the provided ItemStack is the correct item used for breeding this entity..booleanPiglin.removeBarterMaterial(@NotNull Material material) Removes a material from the allowed list of materials to barter with.booleanPiglin.removeMaterialOfInterest(@NotNull Material material) Removes a material from the list of materials the piglin will pickup.voidPlayer.sendBlockChange(Location loc, Material material, byte data) Deprecated.Magic valuevoidHumanEntity.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 TypeMethodDescriptionvoidSet the block at x,y,z in the chunk data to material.voidChunkGenerator.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 aMaterialrepresenting 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.booleanChecks if the inventory contains any ItemStacks with the given material.booleanChecks if the inventory contains any ItemStacks with the given material, adding to at least the minimum amount specified.intFinds 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.booleanItemFactory.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.voidRemoves 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.voidDeprecated.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 part has been replaced by theItemAdventurePredicateAPI.ItemMeta.getCanPlaceOn()Deprecated, for removal: This API element is subject to removal in a future version.this API part has been replaced by theItemAdventurePredicateAPI.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 TypeMethodDescriptionvoidItemMeta.setCanDestroy(Set<Material> canDestroy) Deprecated, for removal: This API element is subject to removal in a future version.this API part has been replaced by theItemAdventurePredicateAPI.voidItemMeta.setCanPlaceOn(Set<Material> canPlaceOn) Deprecated, for removal: This API element is subject to removal in a future version.this API part has been replaced by theItemAdventurePredicateAPI. -
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.voidSet 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.voidToolComponent.ToolRule.setBlocks(@NotNull Collection<Material> blocks) Set the block types to which this rule applies.voidSet 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 MaterialCrops.DEFAULT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.protected static final MaterialLeaves.DEFAULT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.protected static final MaterialTree.DEFAULT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.protected static final MaterialWood.DEFAULT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.protected static final MaterialWoodenStep.DEFAULT_TYPEDeprecated, 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 MaterialDoor.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 TypeMethodDescriptionvoidTexturedMaterial.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 TypeMethodDescriptionbooleanDataPackManager.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