net.minecraft.world.item

public class BundleItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cxh
net.minecraft.world.item.BundleItem
net.minecraft.class_5537
net.minecraft.item.BundleItem

Field summary

Modifier and TypeField
public static final int
a
MAX_SHOWN_GRID_ITEMS_X
field_52575
TOOLTIP_STACKS_COLUMNS
public static final int
b
MAX_SHOWN_GRID_ITEMS_Y
field_52576
TOOLTIP_STACKS_ROWS
public static final int
c
MAX_SHOWN_GRID_ITEMS
field_52577
MAX_TOOLTIP_STACKS_SHOWN
public static final int
d
OVERFLOWING_MAX_SHOWN_GRID_ITEMS
field_52578
MAX_TOOLTIP_STACKS_SHOWN_WHEN_TOO_MANY_TYPES
private static final int
o
FULL_BAR_COLOR
field_52579
FULL_ITEM_BAR_COLOR
private static final int
p
BAR_COLOR
field_27016
ITEM_BAR_COLOR
private static final int
q
TICKS_AFTER_FIRST_THROW
field_54109
field_54109
private static final int
r
TICKS_BETWEEN_THROWS
field_54110
field_54110
private static final int
s
TICKS_MAX_THROW_DURATION
field_54111
MAX_USE_TIME

Constructor summary

ModifierConstructor
public (Item$Properties arg0)

Method summary

Modifier and TypeMethod
public static float
c(cys arg0)
getFullnessDisplay(ItemStack arg0)
method_31561(class_1799 arg0)
getAmountFilled(ItemStack stack)
public boolean
a(cys arg0, cwh arg1, cuu arg2, cqs 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)
public boolean
a(cys arg0, cys arg1, cwh arg2, cuu arg3, cqs arg4, bxq 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)
public InteractionResult
a(dip arg0, cqs arg1, btx 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)
private void
a(dip arg0, cqs arg1, cys arg2)
dropContent(Level arg0, Player arg1, ItemStack arg2)
method_63675(class_1937 arg0, class_1657 arg1, class_1799 arg2)
dropContentsOnUse(World world, PlayerEntity player, ItemStack stack)
public boolean
d(cys arg0)
isBarVisible(ItemStack arg0)
method_31567(class_1799 arg0)
isItemBarVisible(ItemStack arg0)
public int
e(cys arg0)
getBarWidth(ItemStack arg0)
method_31569(class_1799 arg0)
getItemBarStep(ItemStack arg0)
public int
f(cys arg0)
getBarColor(ItemStack arg0)
method_31571(class_1799 arg0)
getItemBarColor(ItemStack arg0)
public static void
a(cys arg0, int arg1)
toggleSelectedItem(ItemStack arg0, int arg1)
method_61637(class_1799 arg0, int arg1)
setSelectedStackIndex(ItemStack stack, int selectedStackIndex)
public static boolean
g(cys arg0)
hasSelectedItem(ItemStack arg0)
method_61642(class_1799 arg0)
hasSelectedStack(ItemStack stack)
public static int
h(cys arg0)
getSelectedItem(ItemStack arg0)
method_61643(class_1799 arg0)
getSelectedStackIndex(ItemStack stack)
public static ItemStack
i(cys arg0)
getSelectedItemStack(ItemStack arg0)
method_61644(class_1799 arg0)
getSelectedStack(ItemStack stack)
public static int
j(cys arg0)
getNumberOfItemsToShow(ItemStack arg0)
method_61645(class_1799 arg0)
getNumberOfStacksShown(ItemStack stack)
private boolean
b(cys arg0, cqs arg1)
dropContent(ItemStack arg0, Player arg1)
method_32757(class_1799 arg0, class_1657 arg1)
dropFirstBundledStack(ItemStack stack, PlayerEntity player)
private static Optional<ItemStack>
a(cys arg0, cqs arg1, dav arg2)
removeOneItemFromBundle(ItemStack arg0, Player arg1, BundleContents arg2)
method_63676(class_1799 arg0, class_1657 arg1, class_9276 arg2)
popFirstBundledStack(ItemStack stack, PlayerEntity player, BundleContentsComponent contents)
public void
a(dip arg0, bwz arg1, cys arg2, int arg3)
onUseTick(Level arg0, LivingEntity arg1, ItemStack arg2, int arg3)
method_7852(class_1937 arg0, class_1309 arg1, class_1799 arg2, int arg3)
usageTick(World arg0, LivingEntity arg1, ItemStack arg2, int arg3)
public int
a(cys arg0, bwz arg1)
getUseDuration(ItemStack arg0, LivingEntity arg1)
method_7881(class_1799 arg0, class_1309 arg1)
getMaxUseTime(ItemStack arg0, LivingEntity arg1)
public ItemUseAnimation
b(cys arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack arg0)
public Optional<TooltipComponent>
k(cys arg0)
getTooltipImage(ItemStack arg0)
method_32346(class_1799 arg0)
getTooltipData(ItemStack arg0)
public void
a(cmx arg0)
onDestroyed(ItemEntity arg0)
method_33261(class_1542 arg0)
onItemEntityDestroyed(ItemEntity arg0)
public static List<BundleItem>
a()
getAllBundleItemColors()
method_64975()
getBundles()
public static Item
a(cxq arg0)
getByColor(DyeColor arg0)
method_64277(class_1767 arg0)
getBundle(DyeColor color)
private static void
a(bwa arg0)
playRemoveOneSound(Entity arg0)
method_38074(class_1297 arg0)
playRemoveOneSound(Entity entity)
private static void
b(bwa arg0)
playInsertSound(Entity arg0)
method_38076(class_1297 arg0)
playInsertSound(Entity entity)
private static void
c(bwa arg0)
playInsertFailSound(Entity arg0)
method_61641(class_1297 arg0)
playInsertFailSound(Entity entity)
private static void
a(dip arg0, bwa arg1)
playDropContentsSound(Level arg0, Entity arg1)
method_38077(class_1937 arg0, class_1297 arg1)
playDropContentsSound(World world, Entity entity)
private void
a(cqs arg0)
broadcastChangesOnContainerMenu(Player arg0)
method_64502(class_1657 arg0)
onContentChanged(PlayerEntity user)