net.minecraft.world.item

public class BundleItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cvd
net.minecraft.world.item.BundleItem
net.minecraft.class_5537
net.minecraft.item.BundleItem
net.minecraft.world.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
m
FULL_BAR_COLOR
field_52579
FULL_ITEM_BAR_COLOR
private static final int
n
BAR_COLOR
field_27016
ITEM_BAR_COLOR
private static final int
o
TICKS_AFTER_FIRST_THROW
field_54109
field_54109
private static final int
p
TICKS_BETWEEN_THROWS
field_54110
field_54110
private static final int
q
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(cwq arg0)
getFullnessDisplay(ItemStack arg0)
method_31561(class_1799 arg0)
getAmountFilled(ItemStack stack)
public boolean
a(cwq arg0, cua arg1, csn arg2, coy 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(cwq arg0, cwq arg1, cua arg2, csn arg3, coy arg4, bwa 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(dgj arg0, coy arg1, bsk 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(dgj arg0, coy arg1, cwq 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(cwq arg0)
isBarVisible(ItemStack arg0)
method_31567(class_1799 arg0)
isItemBarVisible(ItemStack arg0)
public int
e(cwq arg0)
getBarWidth(ItemStack arg0)
method_31569(class_1799 arg0)
getItemBarStep(ItemStack arg0)
public int
f(cwq arg0)
getBarColor(ItemStack arg0)
method_31571(class_1799 arg0)
getItemBarColor(ItemStack arg0)
public static void
a(cwq arg0, int arg1)
toggleSelectedItem(ItemStack arg0, int arg1)
method_61637(class_1799 arg0, int arg1)
setSelectedStackIndex(ItemStack stack, int selectedStackIndex)
public static boolean
g(cwq arg0)
hasSelectedItem(ItemStack arg0)
method_61642(class_1799 arg0)
hasSelectedStack(ItemStack stack)
public static int
h(cwq arg0)
getSelectedItem(ItemStack arg0)
method_61643(class_1799 arg0)
getSelectedStackIndex(ItemStack stack)
public static ItemStack
i(cwq arg0)
getSelectedItemStack(ItemStack arg0)
method_61644(class_1799 arg0)
getSelectedStack(ItemStack stack)
public static int
j(cwq arg0)
getNumberOfItemsToShow(ItemStack arg0)
method_61645(class_1799 arg0)
getNumberOfStacksShown(ItemStack stack)
private boolean
b(cwq arg0, coy arg1)
dropContent(ItemStack arg0, Player arg1)
method_32757(class_1799 arg0, class_1657 arg1)
dropFirstBundledStack(ItemStack stack, PlayerEntity player)
private static Optional<ItemStack>
a(cwq arg0, coy arg1, cyu 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(dgj arg0, bvi arg1, cwq 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(cwq arg0, bvi arg1)
getUseDuration(ItemStack arg0, LivingEntity arg1)
method_7881(class_1799 arg0, class_1309 arg1)
getMaxUseTime(ItemStack arg0, LivingEntity arg1)
public ItemUseAnimation
b(cwq arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack arg0)
public Optional<TooltipComponent>
k(cwq arg0)
getTooltipImage(ItemStack arg0)
method_32346(class_1799 arg0)
getTooltipData(ItemStack arg0)
public void
a(cld arg0)
onDestroyed(ItemEntity arg0)
method_33261(class_1542 arg0)
onItemEntityDestroyed(ItemEntity arg0)
public static List<BundleItem>
b()
getAllBundleItemColors()
method_64975()
getBundles()
public static Item
a(cvn arg0)
getByColor(DyeColor arg0)
method_64277(class_1767 arg0)
getBundle(DyeColor color)
private static void
a(bum arg0)
playRemoveOneSound(Entity arg0)
method_38074(class_1297 arg0)
playRemoveOneSound(Entity entity)
private static void
b(bum arg0)
playInsertSound(Entity arg0)
method_38076(class_1297 arg0)
playInsertSound(Entity entity)
private static void
c(bum arg0)
playInsertFailSound(Entity arg0)
method_61641(class_1297 arg0)
playInsertFailSound(Entity entity)
private static void
a(dgj arg0, bum arg1)
playDropContentsSound(Level arg0, Entity arg1)
method_38077(class_1937 arg0, class_1297 arg1)
playDropContentsSound(World world, Entity entity)
private void
a(coy arg0)
broadcastChangesOnContainerMenu(Player arg0)
method_64502(class_1657 arg0)
onContentChanged(PlayerEntity user)