|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Material | |
---|---|
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 | Events relating to when a block is changed or interacts with the world . |
org.bukkit.event.entity | Events relating to entities , excluding some directly referencing
some more specific entity types. |
org.bukkit.event.inventory | Events relating to inventory manipulation. |
org.bukkit.event.player | Events relating to players . |
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 | |
---|---|
static Material |
Material.getMaterial(int id)
Attempts to get the Material with the given ID |
static Material |
Material.getMaterial(String name)
Attempts to get the Material with the given name. |
static Material |
Material.matchMaterial(String name)
Attempts to match the Material with the given name. |
static Material |
Material.valueOf(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're declared. |
Methods in org.bukkit with parameters of type Material | |
---|---|
FallingBlock |
World.spawnFallingBlock(Location location,
Material material,
byte data)
Spawn a FallingBlock entity at the given Location of the specified Material . |
Uses of Material in org.bukkit.block |
---|
Methods in org.bukkit.block that return Material | |
---|---|
Material |
Jukebox.getPlaying()
Get the record currently playing |
Material |
Block.getType()
Gets the type of this block |
Material |
BlockState.getType()
Gets the type of this block |
Methods in org.bukkit.block with parameters of type Material | |
---|---|
void |
Jukebox.setPlaying(Material record)
Set the record currently playing |
void |
Block.setType(Material type)
Sets the type of this block |
void |
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 | |
---|---|
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 | |
---|---|
Material |
FallingBlock.getMaterial()
Get the Material of the falling block |
Methods in org.bukkit.entity with parameters of type Material | |
---|---|
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)
Send a block change. |
Uses of Material in org.bukkit.event.block |
---|
Methods in org.bukkit.event.block that return Material | |
---|---|
Material |
BlockPhysicsEvent.getChangedType()
Gets the type of block that changed, causing this event |
Material |
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 | |
---|---|
Material |
EntityChangeBlockEvent.getTo()
Gets the Material that the block is changing into |
Constructors in org.bukkit.event.entity with parameters of type Material | |
---|---|
EntityChangeBlockEvent(Entity what,
Block block,
Material to,
byte data)
|
|
EntityChangeBlockEvent(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 | |
---|---|
Material |
FurnaceExtractEvent.getItemType()
Get the Material of the item being retrieved |
Constructors in org.bukkit.event.inventory with parameters of type Material | |
---|---|
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 | |
---|---|
Material |
PlayerBucketEvent.getBucket()
Returns the bucket used in this event |
Material |
PlayerInteractEvent.getMaterial()
Convenience method. |
Constructors in org.bukkit.event.player with parameters of type Material | |
---|---|
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)
|
Uses of Material in org.bukkit.inventory |
---|
Methods in org.bukkit.inventory that return Material | |
---|---|
Material |
ItemStack.getType()
Gets the type of this item |
Methods in org.bukkit.inventory with parameters of type Material | |
---|---|
ShapelessRecipe |
ShapelessRecipe.addIngredient(int count,
Material ingredient)
Adds multiples of the specified ingredient. |
ShapelessRecipe |
ShapelessRecipe.addIngredient(int count,
Material ingredient,
int rawdata)
Adds multiples of the specified ingredient. |
ShapelessRecipe |
ShapelessRecipe.addIngredient(Material ingredient)
Adds the specified ingredient. |
ShapelessRecipe |
ShapelessRecipe.addIngredient(Material ingredient,
int rawdata)
Adds the specified ingredient. |
HashMap<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 material |
ItemMeta |
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)
Removes multiple instances of an ingredient from the list. |
ShapelessRecipe |
ShapelessRecipe.removeIngredient(Material ingredient)
Removes an ingredient from the list. |
ShapelessRecipe |
ShapelessRecipe.removeIngredient(Material ingredient,
int rawdata)
Removes an ingredient from the list. |
ShapedRecipe |
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)
Sets the material that a character in the recipe shape refers to. |
FurnaceRecipe |
FurnaceRecipe.setInput(Material input)
Sets the input of this furnace recipe. |
FurnaceRecipe |
FurnaceRecipe.setInput(Material input,
int data)
Sets the input of this furnace recipe. |
void |
ItemStack.setType(Material type)
Sets the type of this item Note that in doing so you will reset the MaterialData for this stack |
Constructors in org.bukkit.inventory with parameters of type Material | |
---|---|
FurnaceRecipe(ItemStack result,
Material source)
Create a furnace recipe to craft the specified ItemStack. |
|
FurnaceRecipe(ItemStack result,
Material source,
int data)
Create a furnace recipe to craft the specified ItemStack. |
|
ItemStack(Material type)
Defaults stack size to 1, with no extra data |
|
ItemStack(Material type,
int amount)
An item stack with no extra data |
|
ItemStack(Material type,
int amount,
short damage)
An item stack with the specified damage / durabiltiy |
|
ItemStack(Material type,
int amount,
short damage,
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 | |
---|---|
Material |
MaterialData.getItemType()
Gets the Material that this MaterialData represents |
Material |
TexturedMaterial.getMaterial()
Gets the current Material this block is made of |
Methods in org.bukkit.material that return types with arguments of type Material | |
---|---|
List<Material> |
Step.getTextures()
|
List<Material> |
SmoothBrick.getTextures()
|
List<Material> |
MonsterEggs.getTextures()
|
abstract List<Material> |
TexturedMaterial.getTextures()
Retrieve a list of possible textures. |
Methods in org.bukkit.material with parameters of type Material | |
---|---|
void |
TexturedMaterial.setMaterial(Material material)
Sets the material this block is made of |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |