Package | Description |
---|---|
com.destroystokyo.paper | |
com.destroystokyo.paper.event.entity | |
com.destroystokyo.paper.event.player | |
com.destroystokyo.paper.inventory | |
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.configuration |
Classes dedicated to handling a plugin's runtime configuration.
|
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.enchantment |
Events triggered from an enchantment table . |
org.bukkit.event.entity | |
org.bukkit.event.inventory | |
org.bukkit.event.player | |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks . |
org.bukkit.loot | |
org.bukkit.material |
Classes that represents various voxel types and states.
|
org.bukkit.potion |
Classes to represent various
potion
properties and manipulation. |
Modifier and Type | Method and Description |
---|---|
boolean |
MaterialSetTag.isTagged(ItemStack item) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
WitchThrowPotionEvent.getPotion() |
ItemStack |
WitchReadyPotionEvent.getPotion() |
ItemStack |
WitchConsumePotionEvent.getPotion() |
static ItemStack |
WitchReadyPotionEvent.process(Witch witch,
ItemStack potion)
Fires thee event, returning the desired potion, or air of cancelled
|
Modifier and Type | Method and Description |
---|---|
static ItemStack |
WitchReadyPotionEvent.process(Witch witch,
ItemStack potion)
Fires thee event, returning the desired potion, or air of cancelled
|
void |
WitchThrowPotionEvent.setPotion(ItemStack potion)
Sets the potion to be thrown at a player
|
void |
WitchReadyPotionEvent.setPotion(ItemStack potion)
Sets the potion the which is going to hold and use
|
void |
WitchConsumePotionEvent.setPotion(ItemStack potion)
Sets the potion to be consumed and applied to the witch.
|
Constructor and Description |
---|
WitchConsumePotionEvent(Witch witch,
ItemStack potion) |
WitchReadyPotionEvent(Witch witch,
ItemStack potion) |
WitchThrowPotionEvent(Witch witch,
LivingEntity target,
ItemStack potion) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
PlayerReadyArrowEvent.getArrow() |
ItemStack |
PlayerReadyArrowEvent.getBow() |
ItemStack |
PlayerLaunchProjectileEvent.getItemStack()
Get the ItemStack used to fire the projectile
|
ItemStack |
PlayerElytraBoostEvent.getItemStack()
Get the firework itemstack used
|
ItemStack |
PlayerArmorChangeEvent.getNewItem()
Gets the new item that's replacing the old
|
ItemStack |
PlayerArmorChangeEvent.getOldItem()
Gets the existing item that's being replaced
|
Constructor and Description |
---|
PlayerArmorChangeEvent(Player player,
PlayerArmorChangeEvent.SlotType slotType,
ItemStack oldItem,
ItemStack newItem) |
PlayerElytraBoostEvent(Player player,
ItemStack itemStack,
Firework firework) |
PlayerLaunchProjectileEvent(Player shooter,
ItemStack itemStack,
Projectile projectile) |
PlayerReadyArrowEvent(Player player,
ItemStack bow,
ItemStack arrow) |
Modifier and Type | Field and Description |
---|---|
protected List<ItemStack> |
ItemStackRecipeChoice.choices
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
ItemStackRecipeChoice.getItemStack()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ItemStackRecipeChoice.test(ItemStack itemStack)
Deprecated.
|
Constructor and Description |
---|
ItemStackRecipeChoice(ItemStack choices)
Deprecated.
|
Constructor and Description |
---|
ItemStackRecipeChoice(List<ItemStack> choices)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
Server.createExplorerMap(World world,
Location location,
StructureType structureType)
Create a new explorer map targeting the closest nearby structure of a
given
StructureType . |
static ItemStack |
Bukkit.createExplorerMap(World world,
Location location,
StructureType structureType)
Create a new explorer map targeting the closest nearby structure of a
given
StructureType . |
ItemStack |
Server.createExplorerMap(World world,
Location location,
StructureType structureType,
int radius,
boolean findUnexplored)
Create a new explorer map targeting the closest nearby structure of a
given
StructureType . |
static ItemStack |
Bukkit.createExplorerMap(World world,
Location location,
StructureType structureType,
int radius,
boolean findUnexplored)
Create a new explorer map targeting the closest nearby structure of a
given
StructureType . |
ItemStack |
UnsafeValues.modifyItemStack(ItemStack stack,
String arguments)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Item |
World.dropItem(Location location,
ItemStack item)
Drops an item at the specified
Location |
Item |
World.dropItemNaturally(Location location,
ItemStack item)
Drops an item at the specified
Location with a random offset |
List<Recipe> |
Server.getRecipesFor(ItemStack result)
Get a list of all recipes for a given item.
|
static List<Recipe> |
Bukkit.getRecipesFor(ItemStack result)
Get a list of all recipes for a given item.
|
ItemStack |
UnsafeValues.modifyItemStack(ItemStack stack,
String arguments)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
Campfire.getItem(int index) |
ItemStack |
Jukebox.getRecord()
Gets the record item inserted into the jukebox.
|
Modifier and Type | Method and Description |
---|---|
Collection<ItemStack> |
Block.getDrops()
Returns a list of items which would drop by destroying this block
|
Collection<ItemStack> |
Block.getDrops(ItemStack tool)
Returns a list of items which would drop by destroying this block with
a specific tool
|
Modifier and Type | Method and Description |
---|---|
boolean |
Block.breakNaturally(ItemStack tool)
Breaks the block and spawns items as if a player had digged it with a
specific tool
|
Collection<ItemStack> |
Block.getDrops(ItemStack tool)
Returns a list of items which would drop by destroying this block with
a specific tool
|
void |
Campfire.setItem(int index,
ItemStack item) |
void |
Jukebox.setRecord(ItemStack record)
Sets the record being played.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
MemorySection.getItemStack(String path) |
ItemStack |
ConfigurationSection.getItemStack(String path)
Gets the requested ItemStack by path.
|
ItemStack |
MemorySection.getItemStack(String path,
ItemStack def) |
ItemStack |
ConfigurationSection.getItemStack(String path,
ItemStack def)
Gets the requested
ItemStack by path, returning a default value
if not found. |
Modifier and Type | Method and Description |
---|---|
ItemStack |
MemorySection.getItemStack(String path,
ItemStack def) |
ItemStack |
ConfigurationSection.getItemStack(String path,
ItemStack def)
Gets the requested
ItemStack by path, returning a default value
if not found. |
Modifier and Type | Method and Description |
---|---|
boolean |
EnchantmentWrapper.canEnchantItem(ItemStack item) |
abstract boolean |
Enchantment.canEnchantItem(ItemStack item)
Checks if this Enchantment may be applied to the given
ItemStack . |
boolean |
EnchantmentTarget.includes(ItemStack item)
Check whether this target includes the specified item.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
LivingEntity.getActiveItem()
Get's the item being actively "used" or consumed.
|
ItemStack |
ArmorStand.getBoots()
Returns the item currently being worn
by the armor stand on its feet
|
ItemStack |
ArmorStand.getChestplate()
Returns the item currently being worn
by the armor stand on its chest
|
ItemStack |
Witch.getDrinkingPotion()
Get the potion the Witch is drinking
|
ItemStack |
ArmorStand.getHelmet()
Returns the item currently being worn
by the armor stand on its head
|
ItemStack |
ThrownPotion.getItem()
Returns a copy of the ItemStack for this thrown potion.
|
ItemStack |
ItemFrame.getItem()
Get the item in this frame
|
ItemStack |
ArmorStand.getItem(EquipmentSlot slot)
Returns the item the armor stand has
equip in the given equipment slot
|
ItemStack |
HumanEntity.getItemInHand()
Deprecated.
Humans may now dual wield in their off hand, use explicit
methods in
PlayerInventory . |
ItemStack |
ArmorStand.getItemInHand()
Deprecated.
use
ArmorStand.getItem(EquipmentSlot) instead |
ItemStack |
HumanEntity.getItemOnCursor()
Returns the ItemStack currently on your cursor, can be empty.
|
ItemStack |
Item.getItemStack()
Gets the item stack associated with this item drop.
|
ItemStack |
ArmorStand.getLeggings()
Returns the item currently being worn
by the armor stand on its legs
|
Modifier and Type | Method and Description |
---|---|
void |
Player.openBook(ItemStack book)
Open a
Material.WRITTEN_BOOK for a Player |
void |
ArmorStand.setBoots(ItemStack item)
Sets the item currently being worn
by the armor stand on its feet
|
void |
ArmorStand.setChestplate(ItemStack item)
Sets the item currently being worn
by the armor stand on its chest
|
void |
Witch.setDrinkingPotion(ItemStack potion)
Set the potion the Witch should drink
|
void |
ArmorStand.setHelmet(ItemStack item)
Sets the item currently being worn
by the armor stand on its head
|
void |
ArmorStand.setItem(EquipmentSlot slot,
ItemStack item)
Sets the item the armor stand has
equip in the given equipment slot
|
void |
ThrownPotion.setItem(ItemStack item)
Set the ItemStack for this thrown potion.
|
void |
ItemFrame.setItem(ItemStack item)
Set the item in this frame
|
void |
ItemFrame.setItem(ItemStack item,
boolean playSound)
Set the item in this frame
|
void |
HumanEntity.setItemInHand(ItemStack item)
Deprecated.
Humans may now dual wield in their off hand, use explicit
methods in
PlayerInventory . |
void |
ArmorStand.setItemInHand(ItemStack item)
Deprecated.
use
ArmorStand.setItem(EquipmentSlot, ItemStack) instead |
void |
HumanEntity.setItemOnCursor(ItemStack item)
Sets the item to the given ItemStack, this will replace whatever the
user was moving.
|
void |
Item.setItemStack(ItemStack stack)
Sets the item stack associated with this item drop.
|
void |
ArmorStand.setLeggings(ItemStack item)
Sets the item currently being worn
by the armor stand on its legs
|
Modifier and Type | Field and Description |
---|---|
protected ItemStack |
BlockPlaceEvent.itemInHand |
Modifier and Type | Method and Description |
---|---|
ItemStack |
BlockDispenseEvent.getItem()
Gets the item that is being dispensed.
|
ItemStack |
BlockPlaceEvent.getItemInHand()
Gets the item in the player's hand when they placed the block.
|
ItemStack |
BlockDamageEvent.getItemInHand()
Gets the ItemStack for the item currently in the player's hand.
|
ItemStack |
BlockCookEvent.getResult()
Gets the resultant ItemStack for this event
|
ItemStack |
BlockCookEvent.getSource()
Gets the smelted ItemStack for this event
|
ItemStack |
BlockShearEntityEvent.getTool()
Gets the item used to shear this sheep.
|
Modifier and Type | Method and Description |
---|---|
void |
BlockDispenseEvent.setItem(ItemStack item)
Sets the item being dispensed.
|
void |
BlockCookEvent.setResult(ItemStack result)
Sets the resultant ItemStack for this event
|
Constructor and Description |
---|
BlockCookEvent(Block block,
ItemStack source,
ItemStack result) |
BlockDamageEvent(Player player,
Block block,
ItemStack itemInHand,
boolean instaBreak) |
BlockDispenseArmorEvent(Block block,
ItemStack dispensed,
LivingEntity target) |
BlockDispenseEvent(Block block,
ItemStack dispensed,
Vector velocity) |
BlockMultiPlaceEvent(List<BlockState> states,
Block clicked,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild) |
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild)
Deprecated.
|
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild,
EquipmentSlot hand) |
BlockShearEntityEvent(Block dispenser,
Entity sheared,
ItemStack tool) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
PrepareItemEnchantEvent.getItem()
Gets the item to be enchanted.
|
ItemStack |
EnchantItemEvent.getItem()
Gets the item to be enchanted (can be modified)
|
Constructor and Description |
---|
EnchantItemEvent(Player enchanter,
InventoryView view,
Block table,
ItemStack item,
int level,
Map<Enchantment,Integer> enchants,
int i) |
PrepareItemEnchantEvent(Player enchanter,
InventoryView view,
Block table,
ItemStack item,
EnchantmentOffer[] offers,
int bonus) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
EntityShootBowEvent.getArrowItem() |
ItemStack |
EntityShootBowEvent.getBow()
Gets the bow ItemStack used to fire the arrow.
|
ItemStack |
EntityBreedEvent.getBredWith()
The ItemStack that was used to initiate breeding, if present.
|
ItemStack |
FoodLevelChangeEvent.getItem()
Gets the item that triggered this event, if any.
|
Modifier and Type | Method and Description |
---|---|
List<ItemStack> |
EntityDeathEvent.getDrops()
Gets all the items which will drop when the entity dies
|
List<ItemStack> |
PlayerDeathEvent.getItemsToKeep()
A mutable collection to add items that the player should retain in their inventory on death (Similar to KeepInventory game rule)
You MUST remove the item from the .getDrops() collection too or it will duplicate!
|
Constructor and Description |
---|
EntityBreedEvent(LivingEntity child,
LivingEntity mother,
LivingEntity father,
LivingEntity breeder,
ItemStack bredWith,
int experience) |
EntityShootBowEvent(LivingEntity shooter,
ItemStack bow,
Entity projectile,
float force)
Deprecated.
|
EntityShootBowEvent(LivingEntity shooter,
ItemStack bow,
ItemStack arrowItem,
Entity projectile,
float force) |
FoodLevelChangeEvent(HumanEntity what,
int level,
ItemStack item) |
Constructor and Description |
---|
EntityDeathEvent(LivingEntity entity,
List<ItemStack> drops) |
EntityDeathEvent(LivingEntity what,
List<ItemStack> drops,
int droppedExp) |
PlayerDeathEvent(Player player,
List<ItemStack> drops,
int droppedExp,
int newExp,
int newTotalExp,
int newLevel,
String deathMessage) |
PlayerDeathEvent(Player player,
List<ItemStack> drops,
int droppedExp,
int newExp,
String deathMessage) |
PlayerDeathEvent(Player player,
List<ItemStack> drops,
int droppedExp,
String deathMessage) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
InventoryClickEvent.getCurrentItem()
Gets the ItemStack currently in the clicked slot.
|
ItemStack |
InventoryDragEvent.getCursor()
Gets the result cursor after the drag is done.
|
ItemStack |
InventoryCreativeEvent.getCursor() |
ItemStack |
InventoryClickEvent.getCursor()
Gets the current ItemStack on the cursor.
|
ItemStack |
FurnaceBurnEvent.getFuel()
Gets the fuel ItemStack for this event
|
ItemStack |
BrewingStandFuelEvent.getFuel()
Gets the ItemStack of the fuel before the amount was subtracted.
|
ItemStack |
InventoryMoveItemEvent.getItem()
Gets the ItemStack being moved; if modified, the original item will not
be removed from the source inventory.
|
ItemStack |
InventoryDragEvent.getOldCursor()
Gets an ItemStack representing the cursor prior to any modifications
as a result of this drag.
|
ItemStack |
PrepareAnvilEvent.getResult()
Get result item, may be null.
|
Modifier and Type | Method and Description |
---|---|
Map<Integer,ItemStack> |
InventoryDragEvent.getNewItems()
Gets all items to be added to the inventory in this drag.
|
Modifier and Type | Method and Description |
---|---|
void |
InventoryClickEvent.setCurrentItem(ItemStack stack)
Sets the ItemStack currently in the clicked slot.
|
void |
InventoryDragEvent.setCursor(ItemStack newCursor)
Sets the result cursor after the drag is done.
|
void |
InventoryCreativeEvent.setCursor(ItemStack item) |
void |
InventoryClickEvent.setCursor(ItemStack stack)
Deprecated.
This changes the ItemStack in their hand before any
calculations are applied to the Inventory, which has a tendency to
create inconsistencies between the Player and the server, and to
make unexpected changes in the behavior of the clicked Inventory.
|
void |
InventoryMoveItemEvent.setItem(ItemStack itemStack)
Sets the ItemStack being moved; if this is different from the original
ItemStack, the original item will not be removed from the source
inventory.
|
void |
PrepareAnvilEvent.setResult(ItemStack result) |
Constructor and Description |
---|
BrewingStandFuelEvent(Block brewingStand,
ItemStack fuel,
int fuelPower) |
FurnaceBurnEvent(Block furnace,
ItemStack fuel,
int burnTime) |
FurnaceSmeltEvent(Block furnace,
ItemStack source,
ItemStack result) |
InventoryCreativeEvent(InventoryView what,
InventoryType.SlotType type,
int slot,
ItemStack newItem) |
InventoryDragEvent(InventoryView what,
ItemStack newCursor,
ItemStack oldCursor,
boolean right,
Map<Integer,ItemStack> slots) |
InventoryMoveItemEvent(Inventory sourceInventory,
ItemStack itemStack,
Inventory destinationInventory,
boolean didSourceInitiate) |
PrepareAnvilEvent(InventoryView inventory,
ItemStack result) |
Constructor and Description |
---|
InventoryDragEvent(InventoryView what,
ItemStack newCursor,
ItemStack oldCursor,
boolean right,
Map<Integer,ItemStack> slots) |
Modifier and Type | Field and Description |
---|---|
protected ItemStack |
PlayerInteractEvent.item |
Modifier and Type | Method and Description |
---|---|
ItemStack |
PlayerArmorStandManipulateEvent.getArmorStandItem()
Returns the item held by the armor stand.
|
ItemStack |
PlayerTakeLecternBookEvent.getBook()
Gets the current ItemStack on the lectern.
|
ItemStack |
PlayerItemBreakEvent.getBrokenItem()
Gets the item that broke
|
ItemStack |
PlayerRiptideEvent.getItem()
Gets the item containing the used enchantment.
|
ItemStack |
PlayerItemMendEvent.getItem()
Get the
ItemStack to be repaired. |
ItemStack |
PlayerItemDamageEvent.getItem()
Gets the item being damaged.
|
ItemStack |
PlayerItemConsumeEvent.getItem()
Gets the item that is being consumed.
|
ItemStack |
PlayerInteractEvent.getItem()
Returns the item in hand represented by this event
|
ItemStack |
PlayerBucketEvent.getItemStack()
Get the resulting item in hand after the bucket event
|
ItemStack |
PlayerSwapHandItemsEvent.getMainHandItem()
Gets the item switched to the main hand.
|
ItemStack |
PlayerSwapHandItemsEvent.getOffHandItem()
Gets the item switched to the off hand.
|
ItemStack |
PlayerArmorStandManipulateEvent.getPlayerItem()
Returns the item held by the player.
|
ItemStack |
PlayerItemConsumeEvent.getReplacement()
Return the custom item stack that will replace the consumed item, or null if no
custom replacement has been set (which means the default replacement will be used).
|
Modifier and Type | Method and Description |
---|---|
void |
PlayerItemConsumeEvent.setItem(ItemStack item)
Set the item being consumed
|
void |
PlayerBucketEvent.setItemStack(ItemStack itemStack)
Set the item in hand after the event
|
void |
PlayerSwapHandItemsEvent.setMainHandItem(ItemStack mainHandItem)
Sets the item in the main hand.
|
void |
PlayerSwapHandItemsEvent.setOffHandItem(ItemStack offHandItem)
Sets the item in the off hand.
|
void |
PlayerItemConsumeEvent.setReplacement(ItemStack replacement)
Set a custom item stack to replace the consumed item.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
ItemStack.add()
Adds 1 to this itemstack.
|
ItemStack |
ItemStack.add(int qty)
Adds quantity to this itemstack.
|
ItemStack |
ItemStack.asOne()
Clones the itemstack and returns it a single quantity.
|
ItemStack |
ItemStack.asQuantity(int qty)
Clones the itemstack and returns it as the specified quantity
|
ItemStack |
ItemStack.clone() |
static ItemStack |
ItemStack.deserialize(Map<String,Object> args)
Required method for configuration serialization
|
ItemStack |
ItemStack.ensureServerConversions()
Minecart updates are converting simple item stacks into more complex NBT oriented Item Stacks.
|
ItemStack |
ItemFactory.ensureServerConversions(ItemStack item)
Minecart updates are converting simple item stacks into more complex NBT oriented Item Stacks.
|
ItemStack |
ArmoredHorseInventory.getArmor()
Gets the item in the horse's armor slot.
|
ItemStack[] |
PlayerInventory.getArmorContents()
Get all ItemStacks from the armor slots
|
ItemStack[] |
EntityEquipment.getArmorContents()
Gets a copy of all worn armor
|
ItemStack |
PlayerInventory.getBoots()
Return the ItemStack from the boots slot
|
ItemStack |
EntityEquipment.getBoots()
Gets a copy of the boots currently being worn by the entity
|
ItemStack |
PlayerInventory.getChestplate()
Return the ItemStack from the chestplate slot
|
ItemStack |
EntityEquipment.getChestplate()
Gets a copy of the chest plate currently being worn by the entity
|
ItemStack[] |
Inventory.getContents()
Returns all ItemStacks from the inventory
|
ItemStack |
InventoryView.getCursor()
Get the item on the cursor of one of the viewing players.
|
ItemStack |
LlamaInventory.getDecor()
Gets the item in the llama's decor slot.
|
ItemStack[] |
PlayerInventory.getExtraContents()
Get all additional ItemStacks stored in this inventory.
|
ItemStack |
FurnaceInventory.getFuel()
Get the current fuel.
|
ItemStack |
BrewerInventory.getFuel()
Get the current fuel for brewing.
|
ItemStack |
PlayerInventory.getHelmet()
Return the ItemStack from the helmet slot
|
ItemStack |
EntityEquipment.getHelmet()
Gets a copy of the helmet currently being worn by the entity
|
ItemStack |
BrewerInventory.getIngredient()
Get the current ingredient for brewing.
|
ItemStack |
StonecuttingRecipe.getInput()
Get the input material.
|
ItemStack |
CookingRecipe.getInput()
Get the input material.
|
ItemStack |
EnchantingInventory.getItem()
Get the item being enchanted.
|
ItemStack |
BeaconInventory.getItem()
Get the item powering the beacon.
|
ItemStack |
PlayerInventory.getItem(EquipmentSlot slot)
Gets the
ItemStack found in the slot. |
ItemStack |
InventoryView.getItem(int slot)
Gets one item in this inventory view by its raw slot ID.
|
ItemStack |
Inventory.getItem(int index)
Returns the ItemStack found in the slot at the given index
|
ItemStack |
PlayerInventory.getItemInHand()
Deprecated.
players can duel wield now use the methods for the
specific hand instead
|
ItemStack |
EntityEquipment.getItemInHand()
Deprecated.
entities can duel wield now use the methods for the
specific hand instead
|
ItemStack |
PlayerInventory.getItemInMainHand()
Gets a copy of the item the player is currently holding
in their main hand.
|
ItemStack |
EntityEquipment.getItemInMainHand()
Gets a copy of the item the entity is currently holding
in their main hand.
|
ItemStack |
PlayerInventory.getItemInOffHand()
Gets a copy of the item the player is currently holding
in their off hand.
|
ItemStack |
EntityEquipment.getItemInOffHand()
Gets a copy of the item the entity is currently holding
in their off hand.
|
ItemStack |
RecipeChoice.getItemStack()
Deprecated.
for compatability only
|
ItemStack |
RecipeChoice.MaterialChoice.getItemStack() |
ItemStack |
RecipeChoice.ExactChoice.getItemStack()
Deprecated.
|
ItemStack |
PlayerInventory.getLeggings()
Return the ItemStack from the leg slot
|
ItemStack |
EntityEquipment.getLeggings()
Gets a copy of the leggings currently being worn by the entity
|
ItemStack[] |
CraftingInventory.getMatrix()
Get the contents of the crafting matrix.
|
ItemStack |
StonecuttingRecipe.getResult()
Get the result of this recipe.
|
ItemStack |
ShapelessRecipe.getResult()
Get the result of this recipe.
|
ItemStack |
ShapedRecipe.getResult()
Get the result.
|
ItemStack |
Recipe.getResult()
Get the result of this recipe.
|
ItemStack |
MerchantRecipe.getResult() |
ItemStack |
FurnaceInventory.getResult()
Get the current item in the result slot.
|
ItemStack |
CraftingInventory.getResult()
Check what item is in the result slot of this crafting inventory.
|
ItemStack |
CookingRecipe.getResult()
Get the result of this recipe.
|
ItemStack |
AbstractHorseInventory.getSaddle()
Gets the item in the horse's saddle slot.
|
ItemStack |
EnchantingInventory.getSecondary()
Get the secondary item being used for the enchant.
|
ItemStack |
FurnaceInventory.getSmelting()
Get the item currently smelting.
|
ItemStack[] |
Inventory.getStorageContents()
Return the contents from the section of the inventory where items can
reasonably be expected to be stored.
|
ItemStack |
ItemStack.subtract()
Subtracts 1 to this itemstack.
|
ItemStack |
ItemStack.subtract(int qty)
Subtracts quantity to this itemstack.
|
Modifier and Type | Method and Description |
---|---|
HashMap<Integer,ItemStack> |
Inventory.addItem(ItemStack... items)
Stores the given ItemStacks in the inventory.
|
HashMap<Integer,? extends ItemStack> |
Inventory.all(ItemStack item)
Finds all slots in the inventory containing any ItemStacks with the
given ItemStack.
|
HashMap<Integer,? extends ItemStack> |
Inventory.all(Material material)
Returns a HashMap with all slots and ItemStacks in the inventory with
the given Material.
|
List<ItemStack> |
RecipeChoice.ExactChoice.getChoices()
Deprecated.
|
List<ItemStack> |
ShapelessRecipe.getIngredientList()
Get the list of ingredients used for this recipe.
|
Map<Character,ItemStack> |
ShapedRecipe.getIngredientMap()
Get a copy of the ingredients map.
|
List<ItemStack> |
MerchantRecipe.getIngredients() |
ListIterator<ItemStack> |
Inventory.iterator() |
ListIterator<ItemStack> |
Inventory.iterator(int index)
Returns an iterator starting at the given index.
|
HashMap<Integer,ItemStack> |
Inventory.removeItem(ItemStack... items)
Removes the given ItemStacks from the inventory.
|
HashMap<Integer,ItemStack> |
Inventory.removeItemAnySlot(ItemStack... items)
Searches all possible inventory slots in order to remove the given ItemStacks.
|
Modifier and Type | Method and Description |
---|---|
ShapelessRecipe |
ShapelessRecipe.addIngredient(int count,
ItemStack item) |
ShapelessRecipe |
ShapelessRecipe.addIngredient(ItemStack item) |
void |
MerchantRecipe.addIngredient(ItemStack item) |
HashMap<Integer,ItemStack> |
Inventory.addItem(ItemStack... items)
Stores the given ItemStacks in the inventory.
|
HashMap<Integer,? extends ItemStack> |
Inventory.all(ItemStack item)
Finds all slots in the inventory containing any ItemStacks with the
given ItemStack.
|
ItemMeta |
ItemFactory.asMetaFor(ItemMeta meta,
ItemStack stack)
Returns an appropriate item meta for the specified stack.
|
boolean |
Inventory.contains(ItemStack item)
Checks if the inventory contains any ItemStacks matching the given
ItemStack.
|
boolean |
Inventory.contains(ItemStack item,
int amount)
Checks if the inventory contains at least the minimum amount specified
of exactly matching ItemStacks.
|
boolean |
Inventory.containsAtLeast(ItemStack item,
int amount)
Checks if the inventory contains ItemStacks matching the given
ItemStack whose amounts sum to at least the minimum amount specified.
|
ItemStack |
ItemFactory.ensureServerConversions(ItemStack item)
Minecart updates are converting simple item stacks into more complex NBT oriented Item Stacks.
|
int |
Inventory.first(ItemStack item)
Returns the first slot in the inventory containing an ItemStack with
the given stack.
|
String |
ItemFactory.getI18NDisplayName(ItemStack item)
Gets the Display name as seen in the Client.
|
boolean |
ItemFactory.isApplicable(ItemMeta meta,
ItemStack stack)
This method checks the item meta to confirm that it is applicable (no
data lost if applied) to the specified ItemStack.
|
boolean |
ItemStack.isSimilar(ItemStack stack)
This method is the same as equals, but does not consider stack size
(amount).
|
void |
Inventory.remove(ItemStack item)
Removes all stacks in the inventory matching the given stack.
|
ShapelessRecipe |
ShapelessRecipe.removeIngredient(int count,
ItemStack item) |
ShapelessRecipe |
ShapelessRecipe.removeIngredient(ItemStack item) |
HashMap<Integer,ItemStack> |
Inventory.removeItem(ItemStack... items)
Removes the given ItemStacks from the inventory.
|
HashMap<Integer,ItemStack> |
Inventory.removeItemAnySlot(ItemStack... items)
Searches all possible inventory slots in order to remove the given ItemStacks.
|
void |
ArmoredHorseInventory.setArmor(ItemStack stack)
Sets the item in the horse's armor slot.
|
void |
PlayerInventory.setArmorContents(ItemStack[] items)
Put the given ItemStacks into the armor slots
|
void |
EntityEquipment.setArmorContents(ItemStack[] items)
Sets the entities armor to the provided array of ItemStacks
|
void |
PlayerInventory.setBoots(ItemStack boots)
Put the given ItemStack into the boots slot.
|
void |
EntityEquipment.setBoots(ItemStack boots)
Sets the boots worn by the entity
|
void |
PlayerInventory.setChestplate(ItemStack chestplate)
Put the given ItemStack into the chestplate slot.
|
void |
EntityEquipment.setChestplate(ItemStack chestplate)
Sets the chest plate worn by the entity
|
void |
Inventory.setContents(ItemStack[] items)
Completely replaces the inventory's contents.
|
void |
InventoryView.setCursor(ItemStack item)
Sets the item on the cursor of one of the viewing players.
|
void |
LlamaInventory.setDecor(ItemStack stack)
Sets the item in the llama's decor slot.
|
void |
PlayerInventory.setExtraContents(ItemStack[] items)
Put the given ItemStacks into the extra slots
See PlayerInventory.getExtraContents() for an explanation of extra slots. |
void |
FurnaceInventory.setFuel(ItemStack stack)
Set the current fuel.
|
void |
BrewerInventory.setFuel(ItemStack fuel)
Set the current fuel for brewing.
|
void |
PlayerInventory.setHelmet(ItemStack helmet)
Put the given ItemStack into the helmet slot.
|
void |
EntityEquipment.setHelmet(ItemStack helmet)
Sets the helmet worn by the entity
|
ShapedRecipe |
ShapedRecipe.setIngredient(char key,
ItemStack item) |
void |
BrewerInventory.setIngredient(ItemStack ingredient)
Set the current ingredient for brewing.
|
void |
PlayerInventory.setItem(EquipmentSlot slot,
ItemStack stack)
Sets the
ItemStack at the given EquipmentSlot . |
void |
PlayerInventory.setItem(int index,
ItemStack item)
Stores the ItemStack at the given index of the inventory.
|
void |
InventoryView.setItem(int slot,
ItemStack item)
Sets one item in this inventory view by its raw slot ID.
|
void |
Inventory.setItem(int index,
ItemStack item)
Stores the ItemStack at the given index of the inventory.
|
void |
EnchantingInventory.setItem(ItemStack item)
Set the item being enchanted.
|
void |
BeaconInventory.setItem(ItemStack item)
Set the item powering the beacon.
|
void |
PlayerInventory.setItemInHand(ItemStack stack)
Deprecated.
players can duel wield now use the methods for the
specific hand instead
|
void |
EntityEquipment.setItemInHand(ItemStack stack)
Deprecated.
entities can duel wield now use the methods for the
specific hand instead
|
void |
PlayerInventory.setItemInMainHand(ItemStack item)
Sets the item the player is holding in their main hand.
|
void |
EntityEquipment.setItemInMainHand(ItemStack item)
Sets the item the entity is holding in their main hand.
|
void |
PlayerInventory.setItemInOffHand(ItemStack item)
Sets the item the player is holding in their off hand.
|
void |
EntityEquipment.setItemInOffHand(ItemStack item)
Sets the item the entity is holding in their off hand.
|
void |
PlayerInventory.setLeggings(ItemStack leggings)
Put the given ItemStack into the leg slot.
|
void |
EntityEquipment.setLeggings(ItemStack leggings)
Sets the leggings worn by the entity
|
void |
CraftingInventory.setMatrix(ItemStack[] contents)
Replace the contents of the crafting matrix
|
void |
FurnaceInventory.setResult(ItemStack stack)
Set the current item in the result slot.
|
void |
CraftingInventory.setResult(ItemStack newResult)
Set the item in the result slot of the crafting inventory.
|
void |
AbstractHorseInventory.setSaddle(ItemStack stack)
Sets the item in the horse's saddle slot.
|
void |
EnchantingInventory.setSecondary(ItemStack item)
Set the secondary item being used for the enchant.
|
void |
FurnaceInventory.setSmelting(ItemStack stack)
Set the item currently smelting.
|
void |
Inventory.setStorageContents(ItemStack[] items)
Put the given ItemStacks into the storage slots
|
boolean |
RecipeChoice.test(ItemStack itemStack) |
boolean |
RecipeChoice.MaterialChoice.test(ItemStack t) |
boolean |
RecipeChoice.ExactChoice.test(ItemStack t)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
MerchantRecipe.setIngredients(List<ItemStack> ingredients) |
Constructor and Description |
---|
BlastingRecipe(NamespacedKey key,
ItemStack result,
Material source,
float experience,
int cookingTime) |
BlastingRecipe(NamespacedKey key,
ItemStack result,
RecipeChoice input,
float experience,
int cookingTime) |
CampfireRecipe(NamespacedKey key,
ItemStack result,
Material source,
float experience,
int cookingTime) |
CampfireRecipe(NamespacedKey key,
ItemStack result,
RecipeChoice input,
float experience,
int cookingTime) |
CookingRecipe(NamespacedKey key,
ItemStack result,
Material source,
float experience,
int cookingTime)
Create a cooking recipe to craft the specified ItemStack.
|
CookingRecipe(NamespacedKey key,
ItemStack result,
RecipeChoice input,
float experience,
int cookingTime)
Create a cooking recipe to craft the specified ItemStack.
|
ExactChoice(ItemStack... stacks)
Deprecated.
|
ExactChoice(ItemStack stack)
Deprecated.
|
FurnaceRecipe(ItemStack result,
Material source)
Deprecated.
|
FurnaceRecipe(ItemStack result,
MaterialData source)
Deprecated.
|
FurnaceRecipe(ItemStack result,
MaterialData source,
float experience)
Deprecated.
|
FurnaceRecipe(ItemStack result,
Material source,
int data)
Deprecated.
|
FurnaceRecipe(NamespacedKey key,
ItemStack result,
Material source,
float experience,
int cookingTime)
Create a furnace recipe to craft the specified ItemStack.
|
FurnaceRecipe(NamespacedKey key,
ItemStack result,
Material source,
int data,
float experience,
int cookingTime)
Deprecated.
|
FurnaceRecipe(NamespacedKey key,
ItemStack result,
RecipeChoice input,
float experience,
int cookingTime)
Create a furnace recipe to craft the specified ItemStack.
|
ItemStack(ItemStack stack)
Creates a new item stack derived from the specified stack
|
MerchantRecipe(ItemStack result,
int maxUses) |
MerchantRecipe(ItemStack result,
int uses,
int maxUses,
boolean experienceReward) |
MerchantRecipe(ItemStack result,
int uses,
int maxUses,
boolean experienceReward,
int villagerExperience,
float priceMultiplier) |
ShapedRecipe(ItemStack result)
Deprecated.
|
ShapedRecipe(NamespacedKey key,
ItemStack result)
Create a shaped recipe to craft the specified ItemStack.
|
ShapelessRecipe(ItemStack result)
Deprecated.
|
ShapelessRecipe(NamespacedKey key,
ItemStack result)
Create a shapeless recipe to craft the specified ItemStack.
|
SmokingRecipe(NamespacedKey key,
ItemStack result,
Material source,
float experience,
int cookingTime) |
SmokingRecipe(NamespacedKey key,
ItemStack result,
RecipeChoice input,
float experience,
int cookingTime) |
StonecuttingRecipe(NamespacedKey key,
ItemStack result,
Material source)
Create a Stonecutting recipe to craft the specified ItemStack.
|
StonecuttingRecipe(NamespacedKey key,
ItemStack result,
RecipeChoice input)
Create a cooking recipe to craft the specified ItemStack.
|
Constructor and Description |
---|
ExactChoice(List<ItemStack> choices)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<ItemStack> |
CrossbowMeta.getChargedProjectiles()
Returns an immutable list of the projectiles charged on this item.
|
Modifier and Type | Method and Description |
---|---|
void |
CrossbowMeta.addChargedProjectile(ItemStack item)
Adds a charged projectile to this item.
|
Modifier and Type | Method and Description |
---|---|
void |
CrossbowMeta.setChargedProjectiles(List<ItemStack> projectiles)
Sets the projectiles charged on this item.
|
Modifier and Type | Method and Description |
---|---|
Collection<ItemStack> |
LootTable.populateLoot(Random random,
LootContext context)
Returns a mutable list of loot generated by this LootTable.
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
MaterialData.toItemStack()
Deprecated.
this method creates an ItemStack of size 0 which is not
generally useful. Consider
MaterialData.toItemStack(int) . |
ItemStack |
MaterialData.toItemStack(int amount)
Deprecated.
Creates a new ItemStack based on this MaterialData
|
Modifier and Type | Method and Description |
---|---|
ItemStack |
Potion.toItemStack(int amount)
Deprecated.
Converts this potion to an
ItemStack with the specified amount
and a correct damage value. |
Modifier and Type | Method and Description |
---|---|
void |
Potion.apply(ItemStack to)
Deprecated.
Applies the effects of this potion to the given
ItemStack . |
static Potion |
Potion.fromItemStack(ItemStack item)
Deprecated.
|
Copyright © 2022. All rights reserved.