net.minecraft.world.item

public class BundleItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cwc
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
private final ResourceLocation
r
openFrontModel
field_54112
openFrontTexture
private final ResourceLocation
s
openBackModel
field_54113
openBackTexture

Constructor summary

ModifierConstructor
public (ResourceLocation openFrontTexture, ResourceLocation openBackTexture, Item$Properties settings)

Method summary

Modifier and TypeMethod
public static float
c(cxp arg0)
getFullnessDisplay(ItemStack arg0)
method_31561(class_1799 arg0)
getAmountFilled(ItemStack stack)
public ResourceLocation
b()
openFrontModel()
method_63677()
getOpenFrontTexture()
public ResourceLocation
c()
openBackModel()
method_63678()
getOpenBackTexture()
public boolean
a(cxp arg0, cuz arg1, ctm arg2, cpx 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(cxp arg0, cxp arg1, cuz arg2, ctm arg3, cpx arg4, bwy 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(dhi arg0, cpx arg1, bti 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(dhi arg0, cpx arg1, cxp 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(cxp arg0)
isBarVisible(ItemStack arg0)
method_31567(class_1799 arg0)
isItemBarVisible(ItemStack arg0)
public int
e(cxp arg0)
getBarWidth(ItemStack arg0)
method_31569(class_1799 arg0)
getItemBarStep(ItemStack arg0)
public int
f(cxp arg0)
getBarColor(ItemStack arg0)
method_31571(class_1799 arg0)
getItemBarColor(ItemStack arg0)
public static void
a(cxp arg0, int arg1)
toggleSelectedItem(ItemStack arg0, int arg1)
method_61637(class_1799 arg0, int arg1)
setSelectedStackIndex(ItemStack stack, int selectedStackIndex)
public static boolean
g(cxp arg0)
hasSelectedItem(ItemStack arg0)
method_61642(class_1799 arg0)
hasSelectedStack(ItemStack stack)
public static int
h(cxp arg0)
getSelectedItem(ItemStack arg0)
method_61643(class_1799 arg0)
getSelectedStackIndex(ItemStack stack)
public static ItemStack
i(cxp arg0)
getSelectedItemStack(ItemStack arg0)
method_61644(class_1799 arg0)
getSelectedStack(ItemStack stack)
public static int
j(cxp arg0)
getNumberOfItemsToShow(ItemStack arg0)
method_61645(class_1799 arg0)
getNumberOfStacksShown(ItemStack stack)
private boolean
a(cxp arg0, cpx arg1)
dropContent(ItemStack arg0, Player arg1)
method_32757(class_1799 arg0, class_1657 arg1)
dropFirstBundledStack(ItemStack stack, PlayerEntity player)
private static Optional<ItemStack>
a(cxp arg0, cpx arg1, czt 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(dhi arg0, bwg arg1, cxp 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(cxp arg0, bwg arg1)
getUseDuration(ItemStack arg0, LivingEntity arg1)
method_7881(class_1799 arg0, class_1309 arg1)
getMaxUseTime(ItemStack arg0, LivingEntity arg1)
public Optional<TooltipComponent>
k(cxp arg0)
getTooltipImage(ItemStack arg0)
method_32346(class_1799 arg0)
getTooltipData(ItemStack arg0)
public void
a(cmb arg0)
onDestroyed(ItemEntity arg0)
method_33261(class_1542 arg0)
onItemEntityDestroyed(ItemEntity arg0)
public static List<BundleItem>
d()
getAllBundleItemColors()
method_64975()
getBundles()
public static Item
a(cwm arg0)
getByColor(DyeColor arg0)
method_64277(class_1767 arg0)
getBundle(DyeColor color)
private static void
a(bvk arg0)
playRemoveOneSound(Entity arg0)
method_38074(class_1297 arg0)
playRemoveOneSound(Entity entity)
private static void
b(bvk arg0)
playInsertSound(Entity arg0)
method_38076(class_1297 arg0)
playInsertSound(Entity entity)
private static void
c(bvk arg0)
playInsertFailSound(Entity arg0)
method_61641(class_1297 arg0)
playInsertFailSound(Entity entity)
private static void
a(dhi arg0, bvk arg1)
playDropContentsSound(Level arg0, Entity arg1)
method_38077(class_1937 arg0, class_1297 arg1)
playDropContentsSound(World world, Entity entity)
private void
a(cpx arg0)
broadcastChangesOnContainerMenu(Player arg0)
method_64502(class_1657 arg0)
onContentChanged(PlayerEntity user)