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.
|
Modifier and Type | Method and Description |
---|---|
static Material |
Material.getMaterial(int id)
Deprecated.
Magic value
|
static Material |
Material.getMaterial(String name)
Attempts to get the Material with the given name.
|
Material |
UnsafeValues.getMaterialFromInternalName(String name)
Deprecated.
|
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 are declared.
|
Modifier and Type | Method and Description |
---|---|
FallingBlock |
World.spawnFallingBlock(Location location,
Material material,
byte data)
Deprecated.
Magic value
|
Modifier and Type | Method and Description |
---|---|
Material |
Jukebox.getPlaying()
Gets the record being played.
|
Material |
BlockState.getType()
Gets the type of this block state.
|
Material |
Block.getType()
Gets the type of this block
|
Modifier and Type | Method and Description |
---|---|
void |
Jukebox.setPlaying(Material record)
Sets the record being played.
|
void |
BlockState.setType(Material type)
Sets the type of this block state.
|
void |
Block.setType(Material type)
Sets the type of this block
|
void |
Block.setType(Material type,
boolean applyPhysics)
Sets the type of this block
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
EnchantmentTarget.includes(Material item)
Check whether this target includes the specified item.
|
Modifier and Type | Method and Description |
---|---|
Material |
FallingBlock.getMaterial()
Get the Material of the falling block
|
Modifier and Type | Method and 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 |
HumanEntity.getCooldown(Material material)
Get the cooldown time in ticks remaining for the specified material.
|
int |
Player.getStatistic(Statistic statistic,
Material material)
Gets the value of the given statistic for this player.
|
boolean |
HumanEntity.hasCooldown(Material material)
Check whether a cooldown is active on the specified 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)
Deprecated.
Magic value
|
void |
HumanEntity.setCooldown(Material material,
int ticks)
Set a cooldown on the specified material for a certain amount of ticks.
|
void |
Player.setStatistic(Statistic statistic,
Material material,
int newValue)
Sets the given statistic for this player for the given material.
|
Modifier and Type | Method and Description |
---|---|
List<Block> |
LivingEntity.getLastTwoTargetBlocks(Set<Material> transparent,
int maxDistance)
Gets the last two blocks along the living entity's line of sight.
|
List<Block> |
LivingEntity.getLineOfSight(Set<Material> transparent,
int maxDistance)
Gets all blocks along the living entity's line of sight.
|
Block |
LivingEntity.getTargetBlock(Set<Material> transparent,
int maxDistance)
Gets the block that the living entity has targeted.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
Material |
EntityChangeBlockEvent.getTo()
Gets the Material that the block is changing into
|
Constructor and Description |
---|
EntityChangeBlockEvent(Entity what,
Block block,
Material to,
byte data)
Deprecated.
Magic value
|
Modifier and Type | Method and Description |
---|---|
Material |
FurnaceExtractEvent.getItemType()
Get the Material of the item being retrieved
|
Constructor and Description |
---|
FurnaceExtractEvent(Player player,
Block block,
Material itemType,
int itemAmount,
int exp) |
Modifier and Type | Method and Description |
---|---|
Material |
PlayerBucketEvent.getBucket()
Returns the bucket used in this event
|
Material |
PlayerInteractEvent.getMaterial()
Convenience method.
|
Material |
PlayerStatisticIncrementEvent.getMaterial()
Gets the Material if
getStatistic() is a block
or item statistic otherwise returns null. |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
Material |
ChunkGenerator.ChunkData.getType(int x,
int y,
int z)
Get the type of the block at x, y, z.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
Material |
ItemStack.getType()
Gets the type of this item
|
Modifier and Type | Method and 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 value
|
ShapelessRecipe |
ShapelessRecipe.addIngredient(Material ingredient)
Adds the specified ingredient.
|
ShapelessRecipe |
ShapelessRecipe.addIngredient(Material ingredient,
int rawdata)
Deprecated.
Magic value
|
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)
Deprecated.
Magic value
|
ShapelessRecipe |
ShapelessRecipe.removeIngredient(Material ingredient)
Removes an ingredient from the list.
|
ShapelessRecipe |
ShapelessRecipe.removeIngredient(Material ingredient,
int rawdata)
Deprecated.
Magic value
|
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)
Deprecated.
Magic value
|
FurnaceRecipe |
FurnaceRecipe.setInput(Material input)
Sets the input of this furnace recipe.
|
FurnaceRecipe |
FurnaceRecipe.setInput(Material input,
int data)
Deprecated.
Magic value
|
void |
ItemStack.setType(Material type)
Sets the type of this item
|
Constructor and Description |
---|
FurnaceRecipe(ItemStack result,
Material source)
Create a furnace recipe to craft the specified ItemStack.
|
FurnaceRecipe(ItemStack result,
Material source,
int data)
Deprecated.
Magic value
|
FurnaceRecipe(ItemStack result,
Material source,
int data,
float experience)
Deprecated.
Magic value
|
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
|
Modifier and Type | Field and Description |
---|---|
protected static Material |
Tree.DEFAULT_TYPE |
protected static Material |
WoodenStep.DEFAULT_TYPE |
protected static Material |
Leaves.DEFAULT_TYPE |
protected static Material |
Crops.DEFAULT_TYPE |
protected static Material |
Wood.DEFAULT_TYPE |
Modifier and Type | Method and Description |
---|---|
Material |
MaterialData.getItemType()
Gets the Material that this MaterialData represents
|
Material |
TexturedMaterial.getMaterial()
Gets the current Material this block is made of
|
static Material |
Door.getWoodDoorOfSpecies(TreeSpecies species)
Returns the item type of a wooden door for the given tree species.
|
Modifier and Type | Method and Description |
---|---|
abstract List<Material> |
TexturedMaterial.getTextures()
Retrieve a list of possible textures.
|
List<Material> |
SmoothBrick.getTextures() |
List<Material> |
Step.getTextures() |
List<Material> |
MonsterEggs.getTextures() |
Modifier and Type | Method and Description |
---|---|
void |
TexturedMaterial.setMaterial(Material material)
Sets the material this block is made of
|
Constructor and Description |
---|
Banner(Material type) |
Banner(Material type,
byte data)
Deprecated.
Magic value
|
Bed(Material type) |
Bed(Material type,
byte data)
Deprecated.
Magic value
|
Button(Material type) |
Button(Material type,
byte data)
Deprecated.
Magic value
|
Cake(Material type) |
Cake(Material type,
byte data)
Deprecated.
Magic value
|
Chest(Material type) |
Chest(Material type,
byte data)
Deprecated.
Magic value
|
Coal(Material type) |
Coal(Material type,
byte data)
Deprecated.
Magic value
|
Command(Material type) |
Command(Material type,
byte data)
Deprecated.
Magic value
|
Comparator(Material type) |
Comparator(Material type,
byte data)
Deprecated.
Magic value
|
Crops(Material type)
Constructs a crop block of the given type and in the seeded state
|
Crops(Material type,
byte data)
Deprecated.
Magic value
|
Crops(Material type,
CropState state)
Constructs a crop block of the given type and in the given growth state
|
DetectorRail(Material type) |
DetectorRail(Material type,
byte data)
Deprecated.
Magic value
|
Diode(Material type) |
Diode(Material type,
byte data)
Deprecated.
Magic value
|
DirectionalContainer(Material type) |
DirectionalContainer(Material type,
byte data)
Deprecated.
Magic value
|
Dispenser(Material type) |
Dispenser(Material type,
byte data)
Deprecated.
Magic value
|
Door(Material type) |
Door(Material type,
BlockFace face)
Constructs the bottom half of a door of the given material type, facing the specified direction and set to closed
|
Door(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 closed
|
Door(Material type,
boolean isHingeRight)
Constructs the top half of door of the given material type and with the hinge on the left or right
|
Door(Material type,
byte data)
Deprecated.
Magic value
|
Dye(Material type) |
Dye(Material type,
byte data)
Deprecated.
Magic value
|
EnderChest(Material type) |
EnderChest(Material type,
byte data)
Deprecated.
Magic value
|
ExtendedRails(Material type) |
ExtendedRails(Material type,
byte data)
Deprecated.
Magic value
|
FlowerPot(Material type)
Deprecated.
|
FlowerPot(Material type,
byte data)
Deprecated.
Magic value
|
Furnace(Material type) |
Furnace(Material type,
byte data)
Deprecated.
Magic value
|
FurnaceAndDispenser(Material type) |
FurnaceAndDispenser(Material type,
byte data)
Deprecated.
Magic value
|
Hopper(Material type) |
Hopper(Material type,
byte data)
Deprecated.
Magic value
|
Ladder(Material type) |
Ladder(Material type,
byte data)
Deprecated.
Magic value
|
Leaves(Material type)
Constructs a leaf block of the given type.
|
Leaves(Material type,
byte data)
Deprecated.
Magic value
|
Leaves(Material type,
TreeSpecies species)
Constructs a leaf block of the given type and tree species.
|
Leaves(Material type,
TreeSpecies species,
boolean isDecayable)
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.
|
Lever(Material type) |
Lever(Material type,
byte data)
Deprecated.
Magic value
|
LongGrass(Material type) |
LongGrass(Material type,
byte data)
Deprecated.
Magic value
|
MaterialData(Material type) |
MaterialData(Material type,
byte data)
Deprecated.
Magic value
|
MonsterEggs(Material type) |
MonsterEggs(Material type,
byte data)
Deprecated.
Magic value
|
Mushroom(Material shroom)
Constructs a brown/red mushroom block with all sides set to pores.
|
Mushroom(Material shroom,
BlockFace capFace)
Constructs a brown/red mushroom cap block with the specified face or
faces set to cap texture.
|
Mushroom(Material shroom,
byte data)
Deprecated.
Magic value
|
Mushroom(Material shroom,
MushroomBlockTexture texture)
Constructs a brown/red mushroom block with the specified textures.
|
NetherWarts(Material type) |
NetherWarts(Material type,
byte data)
Deprecated.
Magic value
|
Observer(Material type) |
Observer(Material type,
byte data)
Deprecated.
Magic value
|
PistonBaseMaterial(Material type) |
PistonBaseMaterial(Material type,
byte data)
Deprecated.
Magic value
|
PistonExtensionMaterial(Material type) |
PistonExtensionMaterial(Material type,
byte data)
Deprecated.
Magic value
|
PoweredRail(Material type) |
PoweredRail(Material type,
byte data)
Deprecated.
Magic value
|
PressurePlate(Material type) |
PressurePlate(Material type,
byte data)
Deprecated.
Magic value
|
Pumpkin(Material type) |
Pumpkin(Material type,
byte data)
Deprecated.
Magic value
|
Rails(Material type) |
Rails(Material type,
byte data)
Deprecated.
Magic value
|
RedstoneTorch(Material type) |
RedstoneTorch(Material type,
byte data)
Deprecated.
Magic value
|
RedstoneWire(Material type) |
RedstoneWire(Material type,
byte data)
Deprecated.
Magic value
|
Sandstone(Material type) |
Sandstone(Material type,
byte data)
Deprecated.
Magic value
|
Sapling(Material type)
Constructs a sapling of the given type.
|
Sapling(Material type,
byte data)
Deprecated.
Magic value
|
Sapling(Material type,
TreeSpecies species)
Constructs a sapling of the given type and tree species.
|
Sapling(Material type,
TreeSpecies species,
boolean isInstantGrowable)
Constructs a sapling of the given type and tree species and if is it
instant growable
|
Sign(Material type) |
Sign(Material type,
byte data)
Deprecated.
Magic value
|
SimpleAttachableMaterialData(Material type) |
SimpleAttachableMaterialData(Material type,
BlockFace direction) |
SimpleAttachableMaterialData(Material type,
byte data)
Deprecated.
Magic value
|
Skull(Material type) |
Skull(Material type,
byte data)
Deprecated.
Magic value
|
SmoothBrick(Material type) |
SmoothBrick(Material type,
byte data)
Deprecated.
Magic value
|
Stairs(Material type) |
Stairs(Material type,
byte data)
Deprecated.
Magic value
|
Step(Material type) |
Step(Material type,
byte data)
Deprecated.
Magic value
|
TexturedMaterial(Material m) |
TexturedMaterial(Material type,
byte data)
Deprecated.
Magic value
|
Torch(Material type) |
Torch(Material type,
byte data)
Deprecated.
Magic value
|
TrapDoor(Material type) |
TrapDoor(Material type,
byte data)
Deprecated.
Magic value
|
Tree(Material type)
Constructs a tree block of the given type.
|
Tree(Material type,
byte data)
Deprecated.
Magic value
|
Tree(Material type,
TreeSpecies species)
Constructs a tree block of the given type and tree species.
|
Tree(Material type,
TreeSpecies species,
BlockFace dir)
Constructs a tree block of the given type and tree species, and facing
the given direction.
|
Wood(Material type)
Constructs a wood block of the given type.
|
Wood(Material type,
byte data)
Deprecated.
Magic value
|
Wood(Material type,
TreeSpecies species)
Constructs a wood block of the given type and tree species.
|
WoodenStep(Material type,
byte data)
Deprecated.
Magic value
|
Wool(Material type) |
Wool(Material type,
byte data)
Deprecated.
Magic value
|
Copyright © 2017. All rights reserved.