net.minecraft.world.item

public class BundleItem

extends Item

All mapped superinterfaces:

ItemLike

bpc
net.minecraft.world.item.BundleItem
net.minecraft.class_5537
net.minecraft.item.BundleItem
net.minecraft.src.C_141169_
net.minecraft.world.item.BundleItem

Field summary

Modifier and TypeField
private static final String
b
TAG_ITEMS
field_30858
ITEMS_KEY
f_150721_
public static final int
a
MAX_WEIGHT
field_30857
MAX_STORAGE
f_150720_
private static final int
c
BUNDLE_IN_BUNDLE_WEIGHT
field_30859
field_30859
f_150722_
private static final int
d
BAR_COLOR
field_27016
ITEM_BAR_COLOR
f_150723_

Constructor summary

ModifierConstructor
public (Item$Properties arg0)

Method summary

Modifier and TypeMethod
public static float
d(bqq arg0)
getFullnessDisplay(ItemStack arg0)
method_31561(class_1799 arg0)
getAmountFilled(ItemStack stack)
m_150766_(C_1391_ p_150767_)
public boolean
a(bqq arg0, bob arg1, bms arg2, bke arg3)
overrideStackedOnOther(ItemStack arg0, Slot arg1, ClickAction arg2, Player arg3)
method_31565(class_1799 arg0, class_1735 arg1, class_5536 arg2, class_1657 arg3)
onStackClicked(ItemStack arg0, Slot arg1, ClickType arg2, PlayerEntity arg3)
m_142207_(C_1391_ p_150734_, C_1305_ p_150735_, C_141163_ p_150736_, C_1141_ arg3)
public boolean
a(bqq arg0, bqq arg1, bob arg2, bms arg3, bke arg4, aul arg5)
overrideOtherStackedOnMe(ItemStack arg0, ItemStack arg1, Slot arg2, ClickAction arg3, Player arg4, SlotAccess arg5)
method_31566(class_1799 arg0, class_1799 arg1, class_1735 arg2, class_5536 arg3, class_1657 arg4, class_5630 arg5)
onClicked(ItemStack arg0, ItemStack arg1, Slot arg2, ClickType arg3, PlayerEntity arg4, StackReference arg5)
m_142305_(C_1391_ p_150743_, C_1391_ p_150744_, C_1305_ p_150745_, C_141163_ p_150746_, C_1141_ p_150747_, C_141073_ arg5)
public InteractionResultHolder<ItemStack>
a(bwq arg0, bke arg1, asa arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
m_7203_(C_1596_ p_150761_, C_1141_ p_150762_, C_470_ arg2)
public boolean
e(bqq arg0)
isBarVisible(ItemStack arg0)
method_31567(class_1799 arg0)
isItemBarVisible(ItemStack arg0)
m_142522_(C_1391_ arg0)
public int
f(bqq arg0)
getBarWidth(ItemStack arg0)
method_31569(class_1799 arg0)
getItemBarStep(ItemStack arg0)
m_142158_(C_1391_ arg0)
public int
g(bqq arg0)
getBarColor(ItemStack arg0)
method_31571(class_1799 arg0)
getItemBarColor(ItemStack arg0)
m_142159_(C_1391_ arg0)
private static int
b(bqq arg0, bqq arg1)
add(ItemStack arg0, ItemStack arg1)
method_31560(class_1799 arg0, class_1799 arg1)
addToBundle(ItemStack bundle, ItemStack stack)
m_150763_(C_1391_ p_150764_, C_1391_ p_150765_)
private static Optional<CompoundTag>
a(bqq arg0, ng arg1)
getMatchingItem(ItemStack arg0, ListTag arg1)
method_32344(class_1799 arg0, class_2499 arg1)
canMergeStack(ItemStack stack, NbtList items)
m_150756_(C_1391_ p_150757_, C_4930_ p_150758_)
private static int
k(bqq arg0)
getWeight(ItemStack arg0)
method_31562(class_1799 arg0)
getItemOccupancy(ItemStack stack)
m_150776_(C_1391_ p_150777_)
private static int
o(bqq arg0)
getContentWeight(ItemStack arg0)
method_31563(class_1799 arg0)
getBundleOccupancy(ItemStack stack)
m_150778_(C_1391_ p_150779_)
private static Optional<ItemStack>
p(bqq arg0)
removeOne(ItemStack arg0)
method_32759(class_1799 arg0)
removeFirstStack(ItemStack stack)
m_150780_(C_1391_ p_150781_)
private static boolean
a(bqq arg0, bke arg1)
dropContents(ItemStack arg0, Player arg1)
method_32757(class_1799 arg0, class_1657 arg1)
dropAllBundledItems(ItemStack stack, PlayerEntity player)
m_150729_(C_1391_ p_150730_, C_1141_ p_150731_)
private static Stream<ItemStack>
q(bqq arg0)
getContents(ItemStack arg0)
method_32345(class_1799 arg0)
getBundledStacks(ItemStack stack)
m_150782_(C_1391_ p_150783_)
public Optional<TooltipComponent>
h(bqq arg0)
getTooltipImage(ItemStack arg0)
method_32346(class_1799 arg0)
getTooltipData(ItemStack arg0)
m_142422_(C_1391_ arg0)
public void
a(bqq arg0, bwq arg1, List<os> arg2, bsd arg3)
appendHoverText(ItemStack arg0, Level arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1937 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack arg0, World arg1, List<Text> arg2, TooltipContext arg3)
m_7373_(C_1391_ p_150750_, C_1596_ p_150751_, List<C_4996_> p_150752_, C_1431_ arg3)
public void
a(bhd arg0)
onDestroyed(ItemEntity arg0)
method_33261(class_1542 arg0)
onItemEntityDestroyed(ItemEntity arg0)
m_142023_(C_976_ arg0)