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 Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
Fields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH, STREAM_CODEC
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendHoverText
(ItemStack p_150749_, Item.TooltipContext p_329599_, List<Component> p_150751_, TooltipFlag p_150752_) private static boolean
dropContents
(ItemStack p_150730_, Player p_150731_) int
getBarColor
(ItemStack p_150773_) int
getBarWidth
(ItemStack p_150771_) static float
getFullnessDisplay
(ItemStack p_150767_) getTooltipImage
(ItemStack p_150775_) boolean
isBarVisible
(ItemStack p_150769_) void
onDestroyed
(ItemEntity p_150728_) boolean
overrideOtherStackedOnMe
(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) boolean
overrideStackedOnOther
(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) private void
playDropContentsSound
(Entity p_186354_) private void
playInsertSound
(Entity p_186352_) private void
playRemoveOneSound
(Entity p_186343_) use
(Level p_150760_, Player p_150761_, InteractionHand p_150762_) Methods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRenderPropertiesInternal, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onUseTick, releaseUsing, requiredFeatures, toString, useOn, useOnRelease, verifyComponentsAfterLoad
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, doesSneakBypassUse, elytraFlightTick, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getHighlightTip, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
Field Details
-
BAR_COLOR
private static final int BAR_COLOR -
TOOLTIP_MAX_WEIGHT
private static final int TOOLTIP_MAX_WEIGHT- See Also:
-
-
Constructor Details
-
BundleItem
-
-
Method Details
-
getFullnessDisplay
-
overrideStackedOnOther
public boolean overrideStackedOnOther(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) - Overrides:
overrideStackedOnOther
in classItem
-
overrideOtherStackedOnMe
public boolean overrideOtherStackedOnMe(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) - Overrides:
overrideOtherStackedOnMe
in classItem
-
use
public InteractionResultHolder<ItemStack> use(Level p_150760_, Player p_150761_, InteractionHand p_150762_) -
isBarVisible
- Overrides:
isBarVisible
in classItem
-
getBarWidth
- Overrides:
getBarWidth
in classItem
-
getBarColor
- Overrides:
getBarColor
in classItem
-
dropContents
-
getTooltipImage
- Overrides:
getTooltipImage
in classItem
-
appendHoverText
public void appendHoverText(ItemStack p_150749_, Item.TooltipContext p_329599_, List<Component> p_150751_, TooltipFlag p_150752_) - Overrides:
appendHoverText
in classItem
-
onDestroyed
- Overrides:
onDestroyed
in classItem
-
playRemoveOneSound
-
playInsertSound
-
playDropContentsSound
-