| Modifier and Type | Method and Description |
|---|---|
boolean |
Player.dropItem(ItemInstance item) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
ContainedItem.getItem() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ItemInstance> |
Equippable.getBoots()
Gets the boots the entity is wearing.
|
Optional<ItemInstance> |
Equippable.getChestplate()
Gets the chestplate the entity is wearing.
|
Optional<ItemInstance> |
Equippable.getHelmet()
Gets the helmet the entity is wearing.
|
Optional<ItemInstance> |
Equippable.getLeggings()
Gets the leggings the entity is wearing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Equippable.setBoots(ItemInstance boots)
Sets the boots the entity is wearing.
|
void |
Equippable.setChestplate(ItemInstance chestplate)
Sets the chestplate the entity is wearing.
|
void |
Equippable.setHelmet(ItemInstance helmet)
Sets the helmet the entity is wearing.
|
void |
ContainedItem.setItem(ItemInstance item) |
void |
Equippable.setLeggings(ItemInstance leggings)
Sets the leggings the entity is wearing.
|
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
BlockPlaceEvent.getItem() |
ItemInstance |
ItemFrameDropItemEvent.getItem() |
ItemInstance |
BlockBreakEvent.getWithItem() |
| Modifier and Type | Method and Description |
|---|---|
Collection<ItemInstance> |
BlockBreakEvent.getDrops() |
| Constructor and Description |
|---|
BlockBreakEvent(Entity entity,
Block block,
BlockState newState,
ItemInstance withItem,
Collection<ItemInstance> drops,
boolean instantBreak) |
BlockPlaceEvent(Player player,
Block against,
Block oldBlock,
BlockState newBlockState,
ItemInstance item) |
ItemFrameDropItemEvent(Player player,
Block block,
ItemFrameBlockEntity itemFrame,
ItemInstance item) |
| Constructor and Description |
|---|
BlockBreakEvent(Entity entity,
Block block,
BlockState newState,
ItemInstance withItem,
Collection<ItemInstance> drops,
boolean instantBreak) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
EntityShootBowEvent.getBow() |
ItemInstance[] |
EntityDeathEvent.getDrops() |
ItemInstance |
EntityInventorySlotChangeEvent.getNewItem() |
ItemInstance |
EntityArmorChangeEvent.getNewItem() |
ItemInstance |
EntityInventorySlotChangeEvent.getOldItem() |
ItemInstance |
EntityArmorChangeEvent.getOldItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityDeathEvent.setDrops(ItemInstance[] drops) |
void |
EntityInventorySlotChangeEvent.setNewItem(ItemInstance newItem) |
void |
EntityArmorChangeEvent.setNewItem(ItemInstance newItem) |
| Constructor and Description |
|---|
EntityArmorChangeEvent(Entity entity,
ItemInstance oldItem,
ItemInstance newItem,
int slot) |
EntityDeathEvent(Entity entity,
ItemInstance[] drops) |
EntityInventorySlotChangeEvent(Entity entity,
ItemInstance oldItem,
ItemInstance newItem,
int slot) |
EntityShootBowEvent(Entity shooter,
ItemInstance bow,
Entity projectile,
float force) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
InventoryClickEvent.getHeldItem() |
ItemInstance |
InventoryClickEvent.getLeftItem() |
ItemInstance |
InventoryClickEvent.getSourceItem() |
| Constructor and Description |
|---|
InventoryClickEvent(Inventory inventory,
int slot,
ItemInstance sourceItem,
ItemInstance heldItem,
ItemInstance leftItem) |
| Modifier and Type | Field and Description |
|---|---|
protected ItemInstance |
PlayerGlassBottleFillEvent.item |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
PlayerEatFoodEvent.getFood() |
ItemInstance |
PlayerGlassBottleFillEvent.getItem() |
ItemInstance |
PlayerItemHeldEvent.getItem() |
ItemInstance |
PlayerInteractEvent.getItem() |
ItemInstance |
PlayerInteractEntityEvent.getItem() |
ItemInstance |
PlayerDropItemEvent.getItem() |
ItemInstance |
PlayerItemConsumeEvent.getItem() |
ItemInstance |
PlayerBlockPickEvent.getItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
PlayerBlockPickEvent.setItem(ItemInstance item) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance[] |
Inventory.getAllContents() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ItemInstance> |
BrewingInventory.getFuel() |
Optional<ItemInstance> |
BrewingInventory.getIngredient() |
default Optional<ItemInstance> |
FurnaceInventory.getItem(FurnaceInventory.SlotType slot) |
Optional<ItemInstance> |
Inventory.getItem(int slot) |
Optional<ItemInstance> |
PlayerInventory.getItemInHand() |
Optional<ItemInstance> |
BrewingInventory.getPotion(int slot) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Inventory.addItem(ItemInstance item) |
void |
Inventory.setAllContents(ItemInstance[] contents) |
void |
BrewingInventory.setFuel(ItemInstance item) |
void |
BrewingInventory.setIngredient(ItemInstance item) |
default void |
FurnaceInventory.setItem(FurnaceInventory.SlotType slot,
ItemInstance item) |
void |
Inventory.setItem(int slot,
ItemInstance item) |
void |
BrewingInventory.setPotion(int slot,
ItemInstance item) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
RecipeItemInstance |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
ItemInstanceBuilder.build() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ItemInstance.equals(ItemInstance item) |
boolean |
ItemInstance.equals(ItemInstance other,
boolean checkAmount,
boolean checkMeta,
boolean checkUserData) |
boolean |
ItemInstance.isMergeable(ItemInstance itemInstance) |
static boolean |
ItemInstance.isNull(ItemInstance item) |
boolean |
ItemInstance.isSimilar(ItemInstance itemInstance) |
| Modifier and Type | Method and Description |
|---|---|
DroppedItem |
Level.dropItem(ItemInstance item,
com.flowpowered.math.vector.Vector3f position) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
ItemFrameBlockEntity.getItem() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ItemInstance> |
JukeboxBlockEntity.getRecord() |
| Modifier and Type | Method and Description |
|---|---|
int |
FurnaceBlockEntity.getBurnDuration(ItemInstance item) |
boolean |
FurnaceBlockEntity.isFuel(ItemInstance item) |
boolean |
FurnaceBlockEntity.isIngredient(ItemInstance item) |
void |
ItemFrameBlockEntity.setItem(ItemInstance item) |
void |
JukeboxBlockEntity.setRecord(ItemInstance item)
Set the current record in the jukebox.
|
Copyright © 2017–2019 NukkitX. All rights reserved.