Package net.minecraft.world.item
Class BundleItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BundleItem
- All Implemented Interfaces:
- FeatureElement,- ItemLike,- IForgeItem
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.ItemItem.Properties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intstatic final intprivate static final StringFields inherited from class net.minecraft.world.item.ItemBASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intvoidappendHoverText(ItemStack p_150749_, Level p_150750_, List<Component> p_150751_, TooltipFlag p_150752_) private static booleandropContents(ItemStack p_150730_, Player p_150731_) intgetBarColor(ItemStack p_150773_) intgetBarWidth(ItemStack p_150771_) getContents(ItemStack p_150783_) private static intgetContentWeight(ItemStack p_150779_) static floatgetFullnessDisplay(ItemStack p_150767_) private static Optional<CompoundTag>getMatchingItem(ItemStack p_150757_, ListTag p_150758_) getTooltipImage(ItemStack p_150775_) private static intbooleanisBarVisible(ItemStack p_150769_) voidonDestroyed(ItemEntity p_150728_) booleanoverrideOtherStackedOnMe(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) booleanoverrideStackedOnOther(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) private voidplayDropContentsSound(Entity p_186354_) private voidplayInsertSound(Entity p_186352_) private voidplayRemoveOneSound(Entity p_186343_) use(Level p_150760_, Player p_150761_, InteractionHand p_150762_) Methods inherited from class net.minecraft.world.item.ItemasItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeItemcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
- 
Field Details- 
TAG_ITEMS- See Also:
 
- 
MAX_WEIGHTpublic static final int MAX_WEIGHT- See Also:
 
- 
BUNDLE_IN_BUNDLE_WEIGHTprivate static final int BUNDLE_IN_BUNDLE_WEIGHT- See Also:
 
- 
BAR_COLORprivate static final int BAR_COLOR
 
- 
- 
Constructor Details- 
BundleItem
 
- 
- 
Method Details- 
getFullnessDisplay
- 
overrideStackedOnOtherpublic boolean overrideStackedOnOther(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) - Overrides:
- overrideStackedOnOtherin class- Item
 
- 
overrideOtherStackedOnMepublic boolean overrideOtherStackedOnMe(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) - Overrides:
- overrideOtherStackedOnMein class- Item
 
- 
usepublic InteractionResultHolder<ItemStack> use(Level p_150760_, Player p_150761_, InteractionHand p_150762_) 
- 
isBarVisible- Overrides:
- isBarVisiblein class- Item
 
- 
getBarWidth- Overrides:
- getBarWidthin class- Item
 
- 
getBarColor- Overrides:
- getBarColorin class- Item
 
- 
add
- 
getMatchingItem
- 
getWeight
- 
getContentWeight
- 
removeOne
- 
dropContents
- 
getContents
- 
getTooltipImage- Overrides:
- getTooltipImagein class- Item
 
- 
appendHoverTextpublic void appendHoverText(ItemStack p_150749_, Level p_150750_, List<Component> p_150751_, TooltipFlag p_150752_) - Overrides:
- appendHoverTextin class- Item
 
- 
onDestroyed- Overrides:
- onDestroyedin class- Item
 
- 
playRemoveOneSound
- 
playInsertSound
- 
playDropContentsSound
 
-