类 BundleItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BundleItem
- 所有已实现的接口:
FeatureElement
,ItemLike
,IForgeItem
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext
-
字段概要
字段修饰符和类型字段说明private static final int
private static final int
static final int
static final int
static final int
static final int
private static final int
private static final int
private static final int
从类继承的字段 net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH, STREAM_CODEC
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
broadcastChangesOnContainerMenu
(Player p_365714_) private boolean
dropContent
(ItemStack p_366961_, Player p_369586_) private void
dropContent
(Level p_369525_, Player p_369321_, ItemStack p_365964_) static List
<BundleItem> int
getBarColor
(ItemStack p_150773_) int
getBarWidth
(ItemStack p_150771_) static Item
getByColor
(DyeColor p_369131_) static float
getFullnessDisplay
(ItemStack p_150767_) static int
getNumberOfItemsToShow
(ItemStack p_363807_) static int
getSelectedItem
(ItemStack p_368122_) static ItemStack
getSelectedItemStack
(ItemStack p_363510_) getTooltipImage
(ItemStack p_150775_) getUseAnimation
(ItemStack p_376256_) int
getUseDuration
(ItemStack p_363914_, LivingEntity p_368133_) static boolean
hasSelectedItem
(ItemStack p_369004_) boolean
isBarVisible
(ItemStack p_150769_) void
onDestroyed
(ItemEntity p_150728_) void
onUseTick
(Level p_369274_, LivingEntity p_365864_, ItemStack p_364728_, int p_366618_) 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 static void
playDropContentsSound
(Level p_362376_, Entity p_186354_) private static void
playInsertFailSound
(Entity p_367200_) private static void
playInsertSound
(Entity p_186352_) private static void
playRemoveOneSound
(Entity p_186343_) removeOneItemFromBundle
(ItemStack p_366514_, Player p_363747_, BundleContents p_363035_) static void
toggleSelectedItem
(ItemStack p_369957_, int p_362067_) use
(Level p_150760_, Player p_150761_, InteractionHand p_150762_) 从类继承的方法 net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBreakingSound, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getRenderPropertiesInternal, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isCorrectToolForDrops, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, postHurtEnemy, releaseUsing, requiredFeatures, shouldPrintOpWarning, toString, useOn, useOnRelease, verifyComponentsAfterLoad
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getBurnTime, getCapabilityProvider, getCapabilityProvider, getCraftingRemainder, getCreatorModId, getDefaultTooltipHideFlags, getEntityLifespan, getEquipmentSlot, getHighlightTip, getSweepHitBox, hasCustomEntity, isBookEnchantable, isMonsterDisguise, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
字段详细资料
-
MAX_SHOWN_GRID_ITEMS_X
public static final int MAX_SHOWN_GRID_ITEMS_X- 另请参阅:
-
MAX_SHOWN_GRID_ITEMS_Y
public static final int MAX_SHOWN_GRID_ITEMS_Y- 另请参阅:
-
MAX_SHOWN_GRID_ITEMS
public static final int MAX_SHOWN_GRID_ITEMS- 另请参阅:
-
OVERFLOWING_MAX_SHOWN_GRID_ITEMS
public static final int OVERFLOWING_MAX_SHOWN_GRID_ITEMS- 另请参阅:
-
FULL_BAR_COLOR
private static final int FULL_BAR_COLOR -
BAR_COLOR
private static final int BAR_COLOR -
TICKS_AFTER_FIRST_THROW
private static final int TICKS_AFTER_FIRST_THROW- 另请参阅:
-
TICKS_BETWEEN_THROWS
private static final int TICKS_BETWEEN_THROWS- 另请参阅:
-
TICKS_MAX_THROW_DURATION
private static final int TICKS_MAX_THROW_DURATION- 另请参阅:
-
-
构造器详细资料
-
BundleItem
-
-
方法详细资料
-
getFullnessDisplay
-
overrideStackedOnOther
public boolean overrideStackedOnOther(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) - 覆盖:
overrideStackedOnOther
在类中Item
-
overrideOtherStackedOnMe
public boolean overrideOtherStackedOnMe(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) - 覆盖:
overrideOtherStackedOnMe
在类中Item
-
use
-
dropContent
-
isBarVisible
- 覆盖:
isBarVisible
在类中Item
-
getBarWidth
- 覆盖:
getBarWidth
在类中Item
-
getBarColor
- 覆盖:
getBarColor
在类中Item
-
toggleSelectedItem
-
hasSelectedItem
-
getSelectedItem
-
getSelectedItemStack
-
getNumberOfItemsToShow
-
dropContent
-
removeOneItemFromBundle
private static Optional<ItemStack> removeOneItemFromBundle(ItemStack p_366514_, Player p_363747_, BundleContents p_363035_) -
onUseTick
-
getUseDuration
- 覆盖:
getUseDuration
在类中Item
-
getUseAnimation
- 覆盖:
getUseAnimation
在类中Item
-
getTooltipImage
- 覆盖:
getTooltipImage
在类中Item
-
onDestroyed
- 覆盖:
onDestroyed
在类中Item
-
getAllBundleItemColors
-
getByColor
-
playRemoveOneSound
-
playInsertSound
-
playInsertFailSound
-
playDropContentsSound
-
broadcastChangesOnContainerMenu
-