Uses of Class
org.bukkit.Material
Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
org.bukkit.enchantments |
Classes relating to the specialized enhancements to
item stacks , as part of the meta data . |
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.block | |
org.bukkit.event.entity | |
org.bukkit.event.inventory | |
org.bukkit.event.player | |
org.bukkit.generator |
Classes to facilitate
world generation
implementation. |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.material |
Classes that represents various voxel types and states.
|
-
Uses of Material in org.bukkit
Methods in org.bukkit that return Material Modifier and Type Method Description static Material
Material. getMaterial(int id)
Deprecated.Magic valuestatic Material
Material. getMaterial(java.lang.String name)
Attempts to get the Material with the given name.Material
UnsafeValues. getMaterialFromInternalName(java.lang.String name)
Deprecated.static Material
Material. matchMaterial(java.lang.String name)
Attempts to match the Material with the given name.static Material
Material. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Material[]
Material. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.bukkit with parameters of type Material Modifier and Type Method Description FallingBlock
World. spawnFallingBlock(Location location, Material material, byte data)
Deprecated.Magic value -
Uses of Material in org.bukkit.block
Methods in org.bukkit.block that return Material Modifier and Type Method Description Material
Jukebox. getPlaying()
Get the record currently playingMaterial
Block. getType()
Gets the type of this blockMaterial
BlockState. getType()
Gets the type of this blockMethods in org.bukkit.block with parameters of type Material Modifier and Type Method Description void
Jukebox. setPlaying(Material record)
Set the record currently playingvoid
Block. setType(Material type)
Sets the type of this blockvoid
Block. setType(Material type, boolean applyPhysics)
Sets the type of this blockvoid
BlockState. setType(Material type)
Sets the type of this block -
Uses of Material in org.bukkit.enchantments
Methods in org.bukkit.enchantments with parameters of type Material Modifier and Type Method Description abstract boolean
EnchantmentTarget. includes(Material item)
Check whether this target includes the specified item. -
Uses of Material in org.bukkit.entity
Methods in org.bukkit.entity that return Material Modifier and Type Method Description Material
FallingBlock. getMaterial()
Get the Material of the falling blockMethods in org.bukkit.entity with parameters of type Material Modifier and Type Method Description void
Player. decrementStatistic(Statistic statistic, Material material)
Decrements the given statistic for this player for the given material.void
Player. decrementStatistic(Statistic statistic, Material material, int amount)
Decrements the given statistic for this player for the given material.int
Player. getStatistic(Statistic statistic, Material material)
Gets the value of the given statistic for this player.void
Player. incrementStatistic(Statistic statistic, Material material)
Increments the given statistic for this player for the given material.void
Player. incrementStatistic(Statistic statistic, Material material, int amount)
Increments the given statistic for this player for the given material.void
Player. sendBlockChange(Location loc, Material material, byte data)
Deprecated.Magic valuevoid
Player. setStatistic(Statistic statistic, Material material, int newValue)
Sets the given statistic for this player for the given material.Method parameters in org.bukkit.entity with type arguments of type Material Modifier and Type Method Description java.util.List<Block>
LivingEntity. getLastTwoTargetBlocks(java.util.Set<Material> transparent, int maxDistance)
Gets the last two blocks along the living entity's line of sight.java.util.List<Block>
LivingEntity. getLineOfSight(java.util.Set<Material> transparent, int maxDistance)
Gets all blocks along the living entity's line of sight.Block
LivingEntity. getTargetBlock(java.util.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 Material Modifier and Type Method Description Material
BlockPhysicsEvent. getChangedType()
Gets the type of block that changed, causing this eventMaterial
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 Modifier and Type Method Description Material
EntityChangeBlockEvent. getTo()
Gets the Material that the block is changing intoConstructors in org.bukkit.event.entity with parameters of type Material Constructor Description EntityChangeBlockEvent(Entity what, Block block, Material to, byte data)
Deprecated.Magic valueEntityChangeBlockEvent(LivingEntity what, Block block, Material to)
Deprecated.Provided as a backward compatibility before the data byte was provided, and type increased to all entities -
Uses of Material in org.bukkit.event.inventory
Methods in org.bukkit.event.inventory that return Material Modifier and Type Method Description Material
FurnaceExtractEvent. getItemType()
Get the Material of the item being retrievedConstructors in org.bukkit.event.inventory with parameters of type Material Constructor Description FurnaceExtractEvent(Player player, Block block, Material itemType, int itemAmount, int exp)
-
Uses of Material in org.bukkit.event.player
Methods in org.bukkit.event.player that return Material Modifier and Type Method Description Material
PlayerBucketEvent. getBucket()
Returns the bucket used in this eventMaterial
PlayerInteractEvent. getMaterial()
Convenience method.Material
PlayerStatisticIncrementEvent. getMaterial()
Gets the Material ifgetStatistic()
is a block or item statistic otherwise returns null.Constructors in org.bukkit.event.player with parameters of type Material Constructor Description PlayerBucketEmptyEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerBucketEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue, Material material)
-
Uses of Material in org.bukkit.generator
Methods in org.bukkit.generator that return Material Modifier and Type Method Description Material
ChunkGenerator.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 Material Modifier and Type Method Description void
ChunkGenerator.ChunkData. setBlock(int x, int y, int z, Material material)
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, 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 Material Modifier and Type Method Description Material
ItemStack. getType()
Gets the type of this itemMethods in org.bukkit.inventory with parameters of type Material Modifier and Type Method Description ShapelessRecipe
ShapelessRecipe. addIngredient(int count, Material ingredient)
Adds multiples of the specified ingredient.ShapelessRecipe
ShapelessRecipe. addIngredient(int count, Material ingredient, int rawdata)
Deprecated.Magic valueShapelessRecipe
ShapelessRecipe. addIngredient(Material ingredient)
Adds the specified ingredient.ShapelessRecipe
ShapelessRecipe. addIngredient(Material ingredient, int rawdata)
Deprecated.Magic valuejava.util.HashMap<java.lang.Integer,? extends ItemStack>
Inventory. all(Material material)
Returns a HashMap with all slots and ItemStacks in the inventory with the given Material.ItemMeta
ItemFactory. asMetaFor(ItemMeta meta, Material material)
Returns an appropriate item meta for the specified material.boolean
Inventory. contains(Material material)
Checks if the inventory contains any ItemStacks with the given material.boolean
Inventory. contains(Material material, int amount)
Checks if the inventory contains any ItemStacks with the given material, adding to at least the minimum amount specified.int
Inventory. first(Material material)
Finds the first slot in the inventory containing an ItemStack with the given materialItemMeta
ItemFactory. getItemMeta(Material material)
This creates a new item meta for the material.boolean
ItemFactory. isApplicable(ItemMeta meta, Material material)
This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified Material.void
Inventory. remove(Material material)
Removes all stacks in the inventory matching the given material.ShapelessRecipe
ShapelessRecipe. removeIngredient(int count, Material ingredient)
Removes multiple instances of an ingredient from the list.ShapelessRecipe
ShapelessRecipe. removeIngredient(int count, Material ingredient, int rawdata)
Deprecated.Magic valueShapelessRecipe
ShapelessRecipe. removeIngredient(Material ingredient)
Removes an ingredient from the list.ShapelessRecipe
ShapelessRecipe. removeIngredient(Material ingredient, int rawdata)
Deprecated.Magic valueShapedRecipe
ShapedRecipe. setIngredient(char key, Material ingredient)
Sets the material that a character in the recipe shape refers to.ShapedRecipe
ShapedRecipe. setIngredient(char key, Material ingredient, int raw)
Deprecated.Magic valueFurnaceRecipe
FurnaceRecipe. setInput(Material input)
Sets the input of this furnace recipe.FurnaceRecipe
FurnaceRecipe. setInput(Material input, int data)
Deprecated.Magic valuevoid
ItemStack. setType(Material type)
Sets the type of this itemConstructors in org.bukkit.inventory with parameters of type Material Constructor Description FurnaceRecipe(ItemStack result, Material source)
Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(ItemStack result, Material source, int data)
Deprecated.Magic valueItemStack(Material type)
Defaults stack size to 1, with no extra dataItemStack(Material type, int amount)
An item stack with no extra dataItemStack(Material type, int amount, short damage)
An item stack with the specified damage / durabiltiyItemStack(Material type, int amount, short damage, java.lang.Byte data)
Deprecated.this method uses an ambiguous data byte object -
Uses of Material in org.bukkit.material
Methods in org.bukkit.material that return Material Modifier and Type Method Description Material
MaterialData. getItemType()
Gets the Material that this MaterialData representsMaterial
TexturedMaterial. getMaterial()
Gets the current Material this block is made ofstatic Material
Door. getWoodDoorOfSpecies(TreeSpecies species)
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 Material Modifier and Type Method Description java.util.List<Material>
MonsterEggs. getTextures()
java.util.List<Material>
SmoothBrick. getTextures()
java.util.List<Material>
Step. getTextures()
abstract java.util.List<Material>
TexturedMaterial. getTextures()
Retrieve a list of possible textures.Methods in org.bukkit.material with parameters of type Material Modifier and Type Method Description void
TexturedMaterial. setMaterial(Material material)
Sets the material this block is made ofConstructors in org.bukkit.material with parameters of type Material Constructor Description Banner(Material type)
Banner(Material type, byte data)
Deprecated.Magic valueBed(Material type)
Bed(Material type, byte data)
Deprecated.Magic valueButton(Material type)
Button(Material type, byte data)
Deprecated.Magic valueCake(Material type)
Cake(Material type, byte data)
Deprecated.Magic valueChest(Material type)
Chest(Material type, byte data)
Deprecated.Magic valueCoal(Material type)
Coal(Material type, byte data)
Deprecated.Magic valueCommand(Material type)
Command(Material type, byte data)
Deprecated.Magic valueCrops(Material type)
Crops(Material type, byte data)
Deprecated.Magic valueDetectorRail(Material type)
DetectorRail(Material type, byte data)
Deprecated.Magic valueDiode(Material type)
Diode(Material type, byte data)
Deprecated.Magic valueDirectionalContainer(Material type)
DirectionalContainer(Material type, byte data)
Deprecated.Magic valueDispenser(Material type)
Dispenser(Material type, byte data)
Deprecated.Magic valueDoor(Material type)
Door(Material type, boolean isHingeRight)
Constructs the top half of door of the given material type and with the hinge on the left or rightDoor(Material type, byte data)
Deprecated.Magic valueDoor(Material type, BlockFace face)
Constructs the bottom half of a door of the given material type, facing the specified direction and set to closedDoor(Material type, BlockFace face, boolean isOpen)
Constructs the bottom half of a door of the given material type, facing the specified direction and set to open or closedDye(Material type)
Dye(Material type, byte data)
Deprecated.Magic valueEnderChest(Material type)
EnderChest(Material type, byte data)
Deprecated.Magic valueExtendedRails(Material type)
ExtendedRails(Material type, byte data)
Deprecated.Magic valueFlowerPot(Material type)
FlowerPot(Material type, byte data)
Deprecated.Magic valueFurnace(Material type)
Furnace(Material type, byte data)
Deprecated.Magic valueFurnaceAndDispenser(Material type)
FurnaceAndDispenser(Material type, byte data)
Deprecated.Magic valueLadder(Material type)
Ladder(Material type, byte data)
Deprecated.Magic valueLeaves(Material type)
Leaves(Material type, byte data)
Deprecated.Magic valueLever(Material type)
Lever(Material type, byte data)
Deprecated.Magic valueLongGrass(Material type)
LongGrass(Material type, byte data)
Deprecated.Magic valueMaterialData(Material type)
MaterialData(Material type, byte data)
Deprecated.Magic valueMonsterEggs(Material type)
MonsterEggs(Material type, byte data)
Deprecated.Magic valueMushroom(Material shroom)
Mushroom(Material shroom, byte data)
Deprecated.Magic valueNetherWarts(Material type)
NetherWarts(Material type, byte data)
Deprecated.Magic valuePistonBaseMaterial(Material type)
PistonBaseMaterial(Material type, byte data)
Deprecated.Magic valuePistonExtensionMaterial(Material type)
PistonExtensionMaterial(Material type, byte data)
Deprecated.Magic valuePoweredRail(Material type)
PoweredRail(Material type, byte data)
Deprecated.Magic valuePressurePlate(Material type)
PressurePlate(Material type, byte data)
Deprecated.Magic valuePumpkin(Material type)
Pumpkin(Material type, byte data)
Deprecated.Magic valueRails(Material type)
Rails(Material type, byte data)
Deprecated.Magic valueRedstoneTorch(Material type)
RedstoneTorch(Material type, byte data)
Deprecated.Magic valueRedstoneWire(Material type)
RedstoneWire(Material type, byte data)
Deprecated.Magic valueSandstone(Material type)
Sandstone(Material type, byte data)
Deprecated.Magic valueSign(Material type)
Sign(Material type, byte data)
Deprecated.Magic valueSimpleAttachableMaterialData(Material type)
SimpleAttachableMaterialData(Material type, byte data)
Deprecated.Magic valueSimpleAttachableMaterialData(Material type, BlockFace direction)
Skull(Material type)
Skull(Material type, byte data)
Deprecated.Magic valueSmoothBrick(Material type)
SmoothBrick(Material type, byte data)
Deprecated.Magic valueStairs(Material type)
Stairs(Material type, byte data)
Deprecated.Magic valueStep(Material type)
Step(Material type, byte data)
Deprecated.Magic valueTexturedMaterial(Material m)
TexturedMaterial(Material type, byte data)
Deprecated.Magic valueTorch(Material type)
Torch(Material type, byte data)
Deprecated.Magic valueTrapDoor(Material type)
TrapDoor(Material type, byte data)
Deprecated.Magic valueTree(Material type)
Tree(Material type, byte data)
Deprecated.Magic valueWoodenStep(Material type, byte data)
Deprecated.Magic valueWool(Material type)
Wool(Material type, byte data)
Deprecated.Magic value