Uses of Interface
org.cloudburstmc.api.item.ItemStack
Packages that use ItemStack
Package
Description
-
Uses of ItemStack in org.cloudburstmc.api.block
Methods in org.cloudburstmc.api.block that return ItemStack -
Uses of ItemStack in org.cloudburstmc.api.block.behavior
Methods in org.cloudburstmc.api.block.behavior that return ItemStackModifier and TypeMethodDescriptionMethods in org.cloudburstmc.api.block.behavior with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanBlockBehavior.canBeBrokenWith(BlockState state, ItemStack item)booleanBlockBehavior.checkTool(BlockState state, ItemStack item)abstract floatBlockBehavior.getBreakTime(BlockState state, ItemStack item, Player player)booleanBlockBehavior.isBreakable(BlockState state, ItemStack item)booleanBlockBehavior.onActivate(Block block, ItemStack item)booleanBlockBehavior.onActivate(Block block, ItemStack item, Player player)booleanbooleanbooleanBlockBehavior.place(ItemStack item, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player)booleanBlockBehavior.placeBlock(Block block, ItemStack item)booleanBlockBehavior.placeBlock(Block block, ItemStack item, boolean update) -
Uses of ItemStack in org.cloudburstmc.api.blockentity
Methods in org.cloudburstmc.api.blockentity that return ItemStackModifier and TypeMethodDescription@Nullable ItemStackLectern.getBook()ItemFrame.getItem()Jukebox.getRecordItem()Methods in org.cloudburstmc.api.blockentity with parameters of type ItemStackModifier and TypeMethodDescriptiondefault int[]ContainerBlockEntity.getHopperPushSlots(Direction direction, ItemStack item)Returns an array of slot indexes where the item should be pushed tobooleanCampfire.putItemInFire(ItemStack item)default booleanCampfire.putItemInFire(ItemStack item, int index)booleanCampfire.putItemInFire(ItemStack item, int index, boolean overwrite)voidvoidvoidJukebox.setRecordItem(ItemStack recordItem) -
Uses of ItemStack in org.cloudburstmc.api.enchantment
Methods in org.cloudburstmc.api.enchantment with parameters of type ItemStack -
Uses of ItemStack in org.cloudburstmc.api.enchantment.behavior
Methods in org.cloudburstmc.api.enchantment.behavior with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanEnchantmentBehavior.canEnchant(EnchantmentInstance enchantment, ItemStack item) -
Uses of ItemStack in org.cloudburstmc.api.entity
Methods in org.cloudburstmc.api.entity with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanEntity.onInteract(Player player, ItemStack item, com.nukkitx.math.vector.Vector3f clickedPos) -
Uses of ItemStack in org.cloudburstmc.api.entity.misc
Methods in org.cloudburstmc.api.entity.misc that return ItemStackMethods in org.cloudburstmc.api.entity.misc with parameters of type ItemStack -
Uses of ItemStack in org.cloudburstmc.api.entity.projectile
Methods in org.cloudburstmc.api.entity.projectile that return ItemStackModifier and TypeMethodDescription@Nullable ItemStackFishingHook.getRod()ThrownTrident.getTrident()Methods in org.cloudburstmc.api.entity.projectile with parameters of type ItemStackModifier and TypeMethodDescriptionvoidvoidThrownTrident.setTrident(@NonNull ItemStack trident) -
Uses of ItemStack in org.cloudburstmc.api.event.block
Fields in org.cloudburstmc.api.event.block declared as ItemStackModifier and TypeFieldDescriptionprotected ItemStack[]BlockBreakEvent.blockDropsprotected ItemStackBlockBreakEvent.itemprotected ItemStackBlockPlaceEvent.itemMethods in org.cloudburstmc.api.event.block that return ItemStackModifier and TypeMethodDescriptionLecternDropBookEvent.getBook()LecternPlaceBookEvent.getBook()BlockBreakEvent.getDrops()BlockBreakEvent.getItem()BlockPlaceEvent.getItem()ItemFrameDropItemEvent.getItem()Methods in org.cloudburstmc.api.event.block with parameters of type ItemStackModifier and TypeMethodDescriptionvoidvoidvoidConstructors in org.cloudburstmc.api.event.block with parameters of type ItemStackModifierConstructorDescriptionBlockBreakEvent(Player player, Block block, ItemStack item, ItemStack[] drops)BlockBreakEvent(Player player, Block block, ItemStack item, ItemStack[] drops, boolean instaBreak)BlockBreakEvent(Player player, Block block, ItemStack item, ItemStack[] drops, boolean instaBreak, boolean fastBreak)BlockBreakEvent(Player player, Block block, Direction face, ItemStack item, ItemStack[] drops, int dropExp, boolean instaBreak, boolean fastBreak)BlockPlaceEvent(Player player, BlockState blockPlace, Block blockReplace, Block blockAgainst, ItemStack item)ItemFrameDropItemEvent(Player player, Block block, ItemFrame itemFrame, ItemStack item)LecternDropBookEvent(Player player, Lectern lectern, ItemStack book)LecternPlaceBookEvent(Player player, Lectern lectern, ItemStack book) -
Uses of ItemStack in org.cloudburstmc.api.event.entity
Methods in org.cloudburstmc.api.event.entity that return ItemStackModifier and TypeMethodDescriptionEntityShootBowEvent.getBow()EntityDeathEvent.getDrops()EntityArmorChangeEvent.getNewItem()EntityInventoryChangeEvent.getNewItem()EntityArmorChangeEvent.getOldItem()EntityInventoryChangeEvent.getOldItem()Methods in org.cloudburstmc.api.event.entity with parameters of type ItemStackModifier and TypeMethodDescriptionvoidvoidEntityArmorChangeEvent.setNewItem(ItemStack newItem)voidEntityInventoryChangeEvent.setNewItem(ItemStack newItem)Constructors in org.cloudburstmc.api.event.entity with parameters of type ItemStackModifierConstructorDescriptionEntityArmorChangeEvent(Entity entity, ItemStack oldItem, ItemStack newItem, int slot)EntityDeathEvent(Living entity, ItemStack[] drops)EntityInventoryChangeEvent(Entity entity, ItemStack oldItem, ItemStack newItem, int slot)EntityShootBowEvent(Living shooter, ItemStack bow, Entity projectile, double force) -
Uses of ItemStack in org.cloudburstmc.api.event.inventory
Methods in org.cloudburstmc.api.event.inventory that return ItemStackModifier and TypeMethodDescriptionFurnaceBurnEvent.getFuel()InventoryClickEvent.getHeldItem()BrewFinishEvent.getIngredient()BrewStartEvent.getIngredient()InventoryMoveItemEvent.getItem()BrewFinishEvent.getPotion(int index)BrewStartEvent.getPotion(int index)BrewFinishEvent.getPotions()BrewStartEvent.getPotions()CraftItemEvent.getResult()FurnaceSmeltEvent.getResult()FurnaceSmeltEvent.getSource()InventoryClickEvent.getSourceItem()Methods in org.cloudburstmc.api.event.inventory that return types with arguments of type ItemStackMethods in org.cloudburstmc.api.event.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionvoidvoidConstructors in org.cloudburstmc.api.event.inventory with parameters of type ItemStackModifierConstructorDescriptionCraftItemEvent(Player player, ItemStack[] input, Recipe recipe)FurnaceBurnEvent(Furnace furnace, ItemStack fuel, short burnTime)FurnaceSmeltEvent(Furnace furnace, ItemStack source, ItemStack result)InventoryClickEvent(Player who, Inventory inventory, int slot, ItemStack sourceItem, ItemStack heldItem)InventoryMoveItemEvent(Inventory from, Inventory targetInventory, InventoryHolder source, ItemStack item, InventoryMoveItemEvent.Action action)Constructor parameters in org.cloudburstmc.api.event.inventory with type arguments of type ItemStackModifierConstructorDescriptionCraftItemEvent(Player source, List<ItemStack> input, Recipe recipe) -
Uses of ItemStack in org.cloudburstmc.api.event.player
Fields in org.cloudburstmc.api.event.player declared as ItemStackModifier and TypeFieldDescriptionprotected ItemStackPlayerGlassBottleFillEvent.itemprotected ItemStackPlayerInteractEntityEvent.itemprotected ItemStackPlayerInteractEvent.itemMethods in org.cloudburstmc.api.event.player that return ItemStackModifier and TypeMethodDescriptionPlayerBucketEvent.getBucket()Returns the bucket used in this eventPlayerBlockPickEvent.getItem()PlayerBucketEvent.getItem()Returns the item in hand after the eventPlayerDropItemEvent.getItem()PlayerGlassBottleFillEvent.getItem()PlayerInteractEntityEvent.getItem()PlayerInteractEvent.getItem()PlayerItemConsumeEvent.getItem()PlayerItemHeldEvent.getItem()PlayerMapInfoRequestEvent.getMap()Methods in org.cloudburstmc.api.event.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoidvoidConstructors in org.cloudburstmc.api.event.player with parameters of type ItemStackModifierConstructorDescriptionPlayerBlockPickEvent(Player player, Block blockClicked, ItemStack item)PlayerBucketEmptyEvent(Player who, Block blockStateClicked, Direction direction, ItemStack bucket, ItemStack itemInHand)PlayerBucketEvent(Player player, BlockState blockStateClicked, Direction direction, ItemStack bucket, ItemStack itemInHand)PlayerBucketFillEvent(Player who, BlockState blockStateClicked, Direction direction, ItemStack bucket, ItemStack itemInHand)PlayerDeathEvent(Player player, ItemStack[] drops, String deathMessage, int experience)PlayerDeathEvent(Player player, ItemStack[] drops, TextContainer deathMessage, int experience)PlayerDropItemEvent(Player player, ItemStack drop)PlayerGlassBottleFillEvent(Player player, BlockState target, ItemStack item)PlayerInteractEntityEvent(Player player, Entity entity, ItemStack item, com.nukkitx.math.vector.Vector3f clickedPos)PlayerInteractEvent(Player player, ItemStack item, com.nukkitx.math.vector.Vector3f touchVector, Direction face, PlayerInteractEvent.Action action)PlayerInteractEvent(Player player, ItemStack item, Block block, Direction face, PlayerInteractEvent.Action action)PlayerItemConsumeEvent(Player player, ItemStack item)PlayerItemHeldEvent(Player player, ItemStack item, int hotbarSlot)PlayerMapInfoRequestEvent(Player player, ItemStack item) -
Uses of ItemStack in org.cloudburstmc.api.inventory
Methods in org.cloudburstmc.api.inventory that return ItemStackModifier and TypeMethodDescriptionCreatureInventory.getArmorContents()CreatureInventory.getArmorItem(int index)default ItemStackCreatureInventory.getBoots()default ItemStackCreatureInventory.getChestplate()CraftingGrid.getCraftingResult()@NonNull ItemStackPlayerInventory.getCursorItem()BrewingInventory.getFuel()FurnaceInventory.getFuel()default ItemStackCreatureInventory.getHelmet()@NonNull ItemStackPlayerInventory.getHotbarSlot(int slot)BrewingInventory.getIngredient()AnvilInventory.getInput()EnchantInventory.getInput()@NonNull ItemStackInventory.getItem(int index)CreatureInventory.getItemInHand()default ItemStackCreatureInventory.getLeggings()AnvilInventory.getMaterial()CreatureInventory.getOffHand()EnchantInventory.getOutput()EnchantInventory.getReagent()FurnaceInventory.getResult()Recipe.getResult()FurnaceInventory.getSmelting()Inventory.removeItem(ItemStack... slots)Methods in org.cloudburstmc.api.inventory that return types with arguments of type ItemStackMethods in org.cloudburstmc.api.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanInventory.canAddItem(ItemStack item)booleandefault intintSearch for the first occurrence of target itemdefault intintReturns the first slot where item fits tointInventory.getFreeSpace(ItemStack item)Returns how much space remains for the target itemvoidInventory.onSlotChange(int index, ItemStack before, boolean send)voidInventory.removeItem(ItemStack... slots)default booleanCreatureInventory.setArmorItem(int index, ItemStack item)booleanCreatureInventory.setArmorItem(int index, ItemStack item, boolean ignoreArmorEvents)default booleandefault booleanCreatureInventory.setChestplate(ItemStack chestplate)booleanPlayerInventory.setCursorItem(@NonNull ItemStack item)voidbooleandefault booleanbooleanPlayerInventory.setHotbarSlot(int slot, @NonNull ItemStack item)voidBrewingInventory.setIngredient(ItemStack item)voidvoiddefault booleanbooleanbooleanCreatureInventory.setItemInHand(ItemStack item)default booleanCreatureInventory.setLeggings(ItemStack leggings)voidAnvilInventory.setMaterial(ItemStack item)voidCreatureInventory.setOffHandContents(ItemStack offhand)voidvoidEnchantInventory.setReagent(ItemStack item)booleanbooleanFurnaceInventory.setSmelting(ItemStack item)Method parameters in org.cloudburstmc.api.inventory with type arguments of type ItemStack -
Uses of ItemStack in org.cloudburstmc.api.item
Methods in org.cloudburstmc.api.item that return ItemStackModifier and TypeMethodDescriptionItemStackBuilder.build()ItemFactory.create(Identifier identifier)default ItemStackItemType.createItem()ItemType.createItem(int amount, Object... metadata)ItemTypes.IntItem.createItem(int amount, Object... metadata)default ItemStackItemStack.decrementAmount()default ItemStackItemStack.decrementAmount(int amount)default ItemStackItemStack.incrementAmount()default ItemStackItemStack.incrementAmount(int amount)default ItemStackItemStack.withAmount(int amount)default ItemStackItemStack.withEnchantment(EnchantmentInstance enchantment)Methods in org.cloudburstmc.api.item with parameters of type ItemStackModifier and TypeMethodDescriptiondefault intbooleandefault booleanbooleanbooleanItemStack.isMergeable(@NonNull ItemStack itemStack) -
Uses of ItemStack in org.cloudburstmc.api.item.behavior
Methods in org.cloudburstmc.api.item.behavior that return ItemStackModifier and TypeMethodDescriptionItemBehavior.onActivate(ItemStack itemStack, Player player, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Level level)ItemBehavior.useOn(ItemStack item, BlockState block)Methods in org.cloudburstmc.api.item.behavior with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanItemBehavior.canBePlaced(ItemStack item)booleanItemBehavior.canDestroy(ItemStack item, Identifier identifier)booleanItemBehavior.canPlaceOn(ItemStack item, Identifier identifier)intItemBehavior.getArmorPoints(ItemStack item)intItemBehavior.getAttackDamage(ItemStack item)intItemBehavior.getEnchantAbility(ItemStack item)shortItemBehavior.getFuelTime(ItemStack item)intItemBehavior.getMaxStackSize(ItemStack item)ItemBehavior.getToolType(ItemStack item)intItemBehavior.getToughness(ItemStack item)booleanbooleanItemBehavior.isUnbreakable(ItemStack item)ItemBehavior.onActivate(ItemStack itemStack, Player player, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Level level)booleanItemBehavior.onClickAir(ItemStack item, com.nukkitx.math.vector.Vector3f directionVector, Player player)ItemBehavior.useOn(ItemStack item, BlockState block) -
Uses of ItemStack in org.cloudburstmc.api.level
Methods in org.cloudburstmc.api.level that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackLevel.useBreakOn(com.nukkitx.math.vector.Vector3i pos)default ItemStackLevel.useBreakOn(com.nukkitx.math.vector.Vector3i pos, ItemStack item)default ItemStackLevel.useBreakOn(com.nukkitx.math.vector.Vector3i pos, ItemStack item, Player player)default ItemStackLevel.useBreakOn(com.nukkitx.math.vector.Vector3i pos, ItemStack item, Player player, boolean createParticles)Level.useBreakOn(com.nukkitx.math.vector.Vector3i pos, Direction face, ItemStack item, Player player, boolean createParticles)default ItemStackLevel.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos)default ItemStackLevel.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player)Level.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player, boolean playSound)Methods in org.cloudburstmc.api.level with parameters of type ItemStackModifier and TypeMethodDescriptiondefault DroppedItemdefault DroppedItemLevel.dropItem(com.nukkitx.math.vector.Vector3f position, ItemStack item, com.nukkitx.math.vector.Vector3f motion)default DroppedItemLevel.dropItem(com.nukkitx.math.vector.Vector3f position, ItemStack item, com.nukkitx.math.vector.Vector3f motion, boolean dropAround)Level.dropItem(com.nukkitx.math.vector.Vector3f position, ItemStack item, com.nukkitx.math.vector.Vector3f motion, boolean dropAround, int delay)default DroppedItemLevel.dropItem(com.nukkitx.math.vector.Vector3f position, ItemStack item, com.nukkitx.math.vector.Vector3f motion, int delay)default DroppedItemdefault ItemStackLevel.useBreakOn(com.nukkitx.math.vector.Vector3i pos, ItemStack item)default ItemStackLevel.useBreakOn(com.nukkitx.math.vector.Vector3i pos, ItemStack item, Player player)default ItemStackLevel.useBreakOn(com.nukkitx.math.vector.Vector3i pos, ItemStack item, Player player, boolean createParticles)Level.useBreakOn(com.nukkitx.math.vector.Vector3i pos, Direction face, ItemStack item, Player player, boolean createParticles)default ItemStackLevel.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos)default ItemStackLevel.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player)Level.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player, boolean playSound) -
Uses of ItemStack in org.cloudburstmc.api.registry
Methods in org.cloudburstmc.api.registry that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackItemRegistry.getItem(BlockState state)ItemRegistry.getItem(BlockState state, int amount)default ItemStackMethods in org.cloudburstmc.api.registry with parameters of type ItemStackModifier and TypeMethodDescriptionRecipeRegistry.matchRecipe(ItemStack[][] inputMap, ItemStack output, ItemStack[][] extraOutputMap, Identifier craftingBlock)