| Modifier and Type | Method and Description |
|---|---|
boolean |
Player.drop(ItemStack item) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack[] |
Container.getContents()
Retrieve a copy of the entire
Container's contents. |
ItemStack |
CraftingContainer.getItem(int x,
int y)
Get item based on x and y coordinate on the crafting grid
|
ItemStack |
Container.getSlot(int slot)
Get item in given slot if it exists
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Container.addItem(ItemStack item)
Add an item to the first empty slot or merge with other items.
|
boolean |
Container.addItemToFirstEmptySlot(ItemStack item)
Adds an item to the first empty slot
|
boolean |
FillingContainer.canAdd(ItemStack item) |
default OptionalInt |
FillingContainer.getSlotByItem(ItemStack item) |
OptionalInt |
FillingContainer.getSlotByItem(ItemStack item,
boolean checkMetadata,
boolean checkUserData) |
boolean |
Container.hasRoomForItem(ItemStack item)
Check to see if there is enough room for the given item, whether that be empty slots or an item that
isMergeable(ItemStack). |
default int |
FillingContainer.removeResource(ItemStack item) |
int |
FillingContainer.removeResource(ItemStack item,
boolean checkMetadata,
boolean checkUserdata,
int amount) |
void |
Container.setSlot(int slot,
ItemStack item)
Set an item at a given slot.
|
| Modifier and Type | Method and Description |
|---|---|
ItemStack[] |
Recipe.getItems() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Recipe.isAnyMetadataValue(ItemStack item) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
ContainedItem.getItem() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ItemStack> |
Equippable.getBoots()
Gets the boots the entity is wearing.
|
Optional<ItemStack> |
Equippable.getChestplate()
Gets the chestplate the entity is wearing.
|
Optional<ItemStack> |
Equippable.getHelmet()
Gets the helmet the entity is wearing.
|
Optional<ItemStack> |
Equippable.getLeggings()
Gets the leggings the entity is wearing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Equippable.setBoots(ItemStack boots)
Sets the boots the entity is wearing.
|
void |
Equippable.setChestplate(ItemStack chestplate)
Sets the chestplate the entity is wearing.
|
void |
Equippable.setHelmet(ItemStack helmet)
Sets the helmet the entity is wearing.
|
void |
ContainedItem.setItem(ItemStack item) |
void |
Equippable.setLeggings(ItemStack leggings)
Sets the leggings the entity is wearing.
|
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
BlockPlaceEvent.getItem() |
ItemStack |
ItemFrameDropItemEvent.getItem() |
ItemStack |
BlockBreakEvent.getWithItem() |
| Modifier and Type | Method and Description |
|---|---|
Collection<ItemStack> |
BlockBreakEvent.getDrops() |
| Constructor and Description |
|---|
BlockBreakEvent(Entity entity,
Block block,
BlockState newState,
ItemStack withItem,
Collection<ItemStack> drops,
boolean instantBreak) |
BlockPlaceEvent(Player player,
Block against,
Block oldBlock,
BlockState newBlockState,
ItemStack item) |
ItemFrameDropItemEvent(Player player,
Block block,
ItemFrameBlockEntity itemFrame,
ItemStack item) |
| Constructor and Description |
|---|
BlockBreakEvent(Entity entity,
Block block,
BlockState newState,
ItemStack withItem,
Collection<ItemStack> drops,
boolean instantBreak) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
EntityShootBowEvent.getBow() |
ItemStack[] |
EntityDeathEvent.getDrops() |
ItemStack |
EntityInventorySlotChangeEvent.getNewItem() |
ItemStack |
EntityArmorChangeEvent.getNewItem() |
ItemStack |
EntityInventorySlotChangeEvent.getOldItem() |
ItemStack |
EntityArmorChangeEvent.getOldItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityDeathEvent.setDrops(ItemStack[] drops) |
void |
EntityInventorySlotChangeEvent.setNewItem(ItemStack newItem) |
void |
EntityArmorChangeEvent.setNewItem(ItemStack newItem) |
| Constructor and Description |
|---|
EntityArmorChangeEvent(Entity entity,
ItemStack oldItem,
ItemStack newItem,
int slot) |
EntityDeathEvent(Entity entity,
ItemStack[] drops) |
EntityInventorySlotChangeEvent(Entity entity,
ItemStack oldItem,
ItemStack newItem,
int slot) |
EntityShootBowEvent(Entity shooter,
ItemStack bow,
Entity projectile,
float force) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
InventoryClickEvent.getHeldItem() |
ItemStack |
InventoryClickEvent.getLeftItem() |
ItemStack |
InventoryClickEvent.getSourceItem() |
| Constructor and Description |
|---|
InventoryClickEvent(Inventory inventory,
int slot,
ItemStack sourceItem,
ItemStack heldItem,
ItemStack leftItem) |
| Modifier and Type | Field and Description |
|---|---|
protected ItemStack |
PlayerGlassBottleFillEvent.item |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
PlayerEatFoodEvent.getFood() |
ItemStack |
PlayerGlassBottleFillEvent.getItem() |
ItemStack |
PlayerItemHeldEvent.getItem() |
ItemStack |
PlayerInteractEvent.getItem() |
ItemStack |
PlayerInteractEntityEvent.getItem() |
ItemStack |
PlayerDropItemEvent.getItem() |
ItemStack |
PlayerItemConsumeEvent.getItem() |
ItemStack |
PlayerBlockPickEvent.getItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
PlayerBlockPickEvent.setItem(ItemStack item) |
| Constructor and Description |
|---|
PlayerBlockPickEvent(Player player,
Block blockClicked,
ItemStack item) |
PlayerBucketEmptyEvent(Player who,
Block blockClicked,
BlockFace blockFace,
ItemStack bucket,
ItemStack itemInHand) |
PlayerBucketFillEvent(Player who,
Block blockClicked,
BlockFace blockFace,
ItemStack bucket,
ItemStack itemInHand) |
PlayerDeathEvent(Player player,
ItemStack[] drops,
Message deathMessage,
int experience) |
PlayerDeathEvent(Player player,
ItemStack[] drops,
String deathMessage,
int experience) |
PlayerDropItemEvent(Player player,
ItemStack drop) |
PlayerEatFoodEvent(Player player,
ItemStack food,
float foodLevelAdded,
int saturationAdded) |
PlayerGlassBottleFillEvent(Player player,
Block target,
ItemStack item) |
PlayerInteractEntityEvent(Player player,
Entity entity,
ItemStack item) |
PlayerInteractEvent(Player player,
ItemStack item,
Block block,
com.flowpowered.math.vector.Vector3f touch,
BlockFace face) |
PlayerInteractEvent(Player player,
ItemStack item,
Block block,
com.flowpowered.math.vector.Vector3f touch,
BlockFace face,
PlayerInteractEvent.Action action) |
PlayerItemConsumeEvent(Player player,
ItemStack item) |
PlayerItemHeldEvent(Player player,
ItemStack item,
int slot) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
RecipeItemStack |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
ItemStackBuilder.build() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ItemStack.equals(ItemStack item) |
boolean |
ItemStack.equals(ItemStack other,
boolean checkAmount,
boolean checkMeta,
boolean checkUserData) |
static boolean |
ItemStack.isInvalid(ItemStack item) |
boolean |
ItemStack.isMergeable(ItemStack itemStack) |
static boolean |
ItemStack.isNull(ItemStack item) |
boolean |
ItemStack.isSimilar(ItemStack itemStack) |
| Modifier and Type | Method and Description |
|---|---|
DroppedItem |
Level.dropItem(ItemStack item,
com.flowpowered.math.vector.Vector3f position) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
ItemFrameBlockEntity.getItem() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ItemStack> |
JukeboxBlockEntity.getRecord() |
| Modifier and Type | Method and Description |
|---|---|
int |
FurnaceBlockEntity.getBurnDuration(ItemStack item) |
boolean |
FurnaceBlockEntity.isFuel(ItemStack item) |
boolean |
FurnaceBlockEntity.isIngredient(ItemStack item) |
void |
ItemFrameBlockEntity.setItem(ItemStack item) |
void |
JukeboxBlockEntity.setRecord(ItemStack item)
Set the current record in the jukebox.
|
Copyright © 2017–2019 NukkitX. All rights reserved.