Package net.minecraft.item
Class BundleItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BundleItem
- All Implemented Interfaces:
ItemConvertible
public class BundleItem extends Item
- Mappings:
Namespace Name official bmi
intermediary net/minecraft/class_5537
named net/minecraft/item/BundleItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings
-
Field Summary
Fields Modifier and Type Field Description private static int
ITEM_BAR_COLOR
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group
-
Constructor Summary
Constructors Constructor Description BundleItem(Item.Settings settings)
-
Method Summary
Methods inherited from class net.minecraft.item.Item
appendStacks, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getEquipSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, hasStoredInventory, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isIn, isNetworkSynced, isSuitableFor, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
Field Details
-
ITEM_BAR_COLOR
private static final int ITEM_BAR_COLOR- Mappings:
Namespace Name Mixin selector official a
Lbmi;a:I
intermediary field_27016
Lnet/minecraft/class_5537;field_27016:I
named ITEM_BAR_COLOR
Lnet/minecraft/item/BundleItem;ITEM_BAR_COLOR:I
-
-
Constructor Details
-
BundleItem
- Mappings:
Namespace Name Mixin selector official <init>
Lbnr;<init>(Lbnr$a;)V
intermediary <init>
Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
named <init>
Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
-
-
Method Details
-
getAmountFilled
- Mappings:
Namespace Name Mixin selector official d
Lbmi;d(Lbnv;)F
intermediary method_31561
Lnet/minecraft/class_5537;method_31561(Lnet/minecraft/class_1799;)F
named getAmountFilled
Lnet/minecraft/item/BundleItem;getAmountFilled(Lnet/minecraft/item/ItemStack;)F
-
onStackClicked
public boolean onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerInventory playerInventory)- Overrides:
onStackClicked
in classItem
- Mappings:
Namespace Name Mixin selector official a
Lbnr;a(Lbnv;Lblh;Lbjz;Lbhk;)Z
intermediary method_31565
Lnet/minecraft/class_1792;method_31565(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;Lnet/minecraft/class_5536;Lnet/minecraft/class_1661;)Z
named onStackClicked
Lnet/minecraft/item/Item;onStackClicked(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/util/ClickType;Lnet/minecraft/entity/player/PlayerInventory;)Z
-
onClicked
public boolean onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerInventory playerInventory)- Overrides:
onClicked
in classItem
- Mappings:
Namespace Name Mixin selector official a
Lbnr;a(Lbnv;Lbnv;Lblh;Lbjz;Lbhk;)Z
intermediary method_31566
Lnet/minecraft/class_1792;method_31566(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;Lnet/minecraft/class_5536;Lnet/minecraft/class_1661;)Z
named onClicked
Lnet/minecraft/item/Item;onClicked(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/util/ClickType;Lnet/minecraft/entity/player/PlayerInventory;)Z
-
use
Called when an item is used by a player. The use action, by default, is bound to the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
world.isClient()
.- Overrides:
use
in classItem
- Parameters:
world
- the world the item was used inuser
- the player who used the itemhand
- the hand used- Returns:
- a typed action result that specifies whether using the item was successful. The action result contains the new item stack that the player's hand will be set to.
- Mappings:
Namespace Name Mixin selector official a
Lbnr;a(Lbtv;Lbhl;Lapp;)Lapr;
intermediary method_7836
Lnet/minecraft/class_1792;method_7836(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;
named use
Lnet/minecraft/item/Item;use(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-
isItemBarVisible
- Overrides:
isItemBarVisible
in classItem
- Mappings:
Namespace Name Mixin selector official e
Lbnr;e(Lbnv;)Z
intermediary method_31567
Lnet/minecraft/class_1792;method_31567(Lnet/minecraft/class_1799;)Z
named isItemBarVisible
Lnet/minecraft/item/Item;isItemBarVisible(Lnet/minecraft/item/ItemStack;)Z
-
getItemBarStep
- Overrides:
getItemBarStep
in classItem
- Mappings:
Namespace Name Mixin selector official f
Lbnr;f(Lbnv;)I
intermediary method_31569
Lnet/minecraft/class_1792;method_31569(Lnet/minecraft/class_1799;)I
named getItemBarStep
Lnet/minecraft/item/Item;getItemBarStep(Lnet/minecraft/item/ItemStack;)I
-
getItemBarColor
- Overrides:
getItemBarColor
in classItem
- Mappings:
Namespace Name Mixin selector official g
Lbnr;g(Lbnv;)I
intermediary method_31571
Lnet/minecraft/class_1792;method_31571(Lnet/minecraft/class_1799;)I
named getItemBarColor
Lnet/minecraft/item/Item;getItemBarColor(Lnet/minecraft/item/ItemStack;)I
-
addToBundle
- Mappings:
Namespace Name Mixin selector official b
Lbmi;b(Lbnv;Lbnv;)I
intermediary method_31560
Lnet/minecraft/class_5537;method_31560(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)I
named addToBundle
Lnet/minecraft/item/BundleItem;addToBundle(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)I
-
method_32344
- Mappings:
Namespace Name Mixin selector official a
Lbmi;a(Lbnv;Lmw;)Ljava/util/Optional;
intermediary method_32344
Lnet/minecraft/class_5537;method_32344(Lnet/minecraft/class_1799;Lnet/minecraft/class_2499;)Ljava/util/Optional;
named method_32344
Lnet/minecraft/item/BundleItem;method_32344(Lnet/minecraft/item/ItemStack;Lnet/minecraft/nbt/ListTag;)Ljava/util/Optional;
-
getItemOccupancy
- Mappings:
Namespace Name Mixin selector official k
Lbmi;k(Lbnv;)I
intermediary method_31562
Lnet/minecraft/class_5537;method_31562(Lnet/minecraft/class_1799;)I
named getItemOccupancy
Lnet/minecraft/item/BundleItem;getItemOccupancy(Lnet/minecraft/item/ItemStack;)I
-
getBundleOccupancy
- Mappings:
Namespace Name Mixin selector official o
Lbmi;o(Lbnv;)I
intermediary method_31563
Lnet/minecraft/class_5537;method_31563(Lnet/minecraft/class_1799;)I
named getBundleOccupancy
Lnet/minecraft/item/BundleItem;getBundleOccupancy(Lnet/minecraft/item/ItemStack;)I
-
removeFirstStack
- Mappings:
Namespace Name Mixin selector official p
Lbmi;p(Lbnv;)Ljava/util/Optional;
intermediary method_32759
Lnet/minecraft/class_5537;method_32759(Lnet/minecraft/class_1799;)Ljava/util/Optional;
named removeFirstStack
Lnet/minecraft/item/BundleItem;removeFirstStack(Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
-
dropAllBundledItems
- Mappings:
Namespace Name Mixin selector official a
Lbmi;a(Lbnv;Lbhl;)Z
intermediary method_32757
Lnet/minecraft/class_5537;method_32757(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Z
named dropAllBundledItems
Lnet/minecraft/item/BundleItem;dropAllBundledItems(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getBundledStacks
- Mappings:
Namespace Name Mixin selector official q
Lbmi;q(Lbnv;)Ljava/util/stream/Stream;
intermediary method_32345
Lnet/minecraft/class_5537;method_32345(Lnet/minecraft/class_1799;)Ljava/util/stream/Stream;
named getBundledStacks
Lnet/minecraft/item/BundleItem;getBundledStacks(Lnet/minecraft/item/ItemStack;)Ljava/util/stream/Stream;
-
getTooltipData
- Overrides:
getTooltipData
in classItem
- Mappings:
Namespace Name Mixin selector official h
Lbnr;h(Lbnv;)Ljava/util/Optional;
intermediary method_32346
Lnet/minecraft/class_1792;method_32346(Lnet/minecraft/class_1799;)Ljava/util/Optional;
named getTooltipData
Lnet/minecraft/item/Item;getTooltipData(Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)- Overrides:
appendTooltip
in classItem
- Mappings:
Namespace Name Mixin selector official a
Lbnr;a(Lbnv;Lbtv;Ljava/util/List;Lbpi;)V
intermediary method_7851
Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)V
named appendTooltip
Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
-
onItemEntityDestroyed
- Overrides:
onItemEntityDestroyed
in classItem
- Mappings:
Namespace Name Mixin selector official a
Lbnr;a(Lbek;)V
intermediary method_33261
Lnet/minecraft/class_1792;method_33261(Lnet/minecraft/class_1542;)V
named onItemEntityDestroyed
Lnet/minecraft/item/Item;onItemEntityDestroyed(Lnet/minecraft/entity/ItemEntity;)V
-