类 BundleItem
- java.lang.Object
-
- net.minecraft.item.Item
-
- net.minecraft.item.BundleItem
-
- 所有已实现的接口:
ItemConvertible
public class BundleItem extends Item
- Mappings:
Namespace Name official bodintermediary net/minecraft/class_5537named net/minecraft/item/BundleItem
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.item.Item
Item.Settings
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intfield_30859private static intITEM_BAR_COLORprivate static StringITEMS_KEYstatic intMAX_STORAGE-
从类继承的字段 net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, field_30888, field_30889, group
-
-
构造器概要
构造器 构造器 说明 BundleItem(Item.Settings settings)
-
方法概要
-
从类继承的方法 net.minecraft.item.Item
appendStacks, asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getEquipSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isIn, isNetworkSynced, isSuitableFor, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
-
-
-
字段详细资料
-
ITEMS_KEY
private static final String ITEMS_KEY
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLbod;b:Ljava/lang/String;intermediary field_30858Lnet/minecraft/class_5537;field_30858:Ljava/lang/String;named ITEMS_KEYLnet/minecraft/item/BundleItem;ITEMS_KEY:Ljava/lang/String;
-
MAX_STORAGE
public static final int MAX_STORAGE
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLbod;a:Iintermediary field_30857Lnet/minecraft/class_5537;field_30857:Inamed MAX_STORAGELnet/minecraft/item/BundleItem;MAX_STORAGE:I
-
field_30859
private static final int field_30859
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLbod;c:Iintermediary field_30859Lnet/minecraft/class_5537;field_30859:Inamed field_30859Lnet/minecraft/item/BundleItem;field_30859:I
-
ITEM_BAR_COLOR
private static final int ITEM_BAR_COLOR
- Mappings:
Namespace Name Mixin selector official dLbod;d:Iintermediary field_27016Lnet/minecraft/class_5537;field_27016:Inamed ITEM_BAR_COLORLnet/minecraft/item/BundleItem;ITEM_BAR_COLOR:I
-
-
构造器详细资料
-
BundleItem
public BundleItem(Item.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lbpn;<init>(Lbpn$a;)Vintermediary <init>Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)Vnamed <init>Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
-
-
方法详细资料
-
getAmountFilled
public static float getAmountFilled(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official dLbod;d(Lbpr;)Fintermediary method_31561Lnet/minecraft/class_5537;method_31561(Lnet/minecraft/class_1799;)Fnamed getAmountFilledLnet/minecraft/item/BundleItem;getAmountFilled(Lnet/minecraft/item/ItemStack;)F
-
onStackClicked
public boolean onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)
- 覆盖:
onStackClicked在类中Item- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbpr;Lbnc;Lblt;Lbjf;)Zintermediary method_31565Lnet/minecraft/class_1792;method_31565(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;Lnet/minecraft/class_5536;Lnet/minecraft/class_1657;)Znamed onStackClickedLnet/minecraft/item/Item;onStackClicked(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/util/ClickType;Lnet/minecraft/entity/player/PlayerEntity;)Z
-
onClicked
public boolean onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)
- 覆盖:
onClicked在类中Item- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbpr;Lbpr;Lbnc;Lblt;Lbjf;Lato;)Zintermediary method_31566Lnet/minecraft/class_1792;method_31566(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;Lnet/minecraft/class_5536;Lnet/minecraft/class_1657;Lnet/minecraft/class_5630;)Znamed onClickedLnet/minecraft/item/Item;onClicked(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/util/ClickType;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/inventory/CommandItemSlot;)Z
-
use
public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player. The use action, by default, is bound to the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
world.isClient().- 覆盖:
use在类中Item- 参数:
world- the world the item was used inuser- the player who used the itemhand- the hand used- 返回:
- a typed action result that specifies whether using the item was successful. The action result contains the new item stack that the player's hand will be set to.
- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbvr;Lbjf;Larf;)Larh;intermediary method_7836Lnet/minecraft/class_1792;method_7836(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;named useLnet/minecraft/item/Item;use(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-
isItemBarVisible
public boolean isItemBarVisible(ItemStack stack)
- 覆盖:
isItemBarVisible在类中Item- Mappings:
Namespace Name Mixin selector official eLbpn;e(Lbpr;)Zintermediary method_31567Lnet/minecraft/class_1792;method_31567(Lnet/minecraft/class_1799;)Znamed isItemBarVisibleLnet/minecraft/item/Item;isItemBarVisible(Lnet/minecraft/item/ItemStack;)Z
-
getItemBarStep
public int getItemBarStep(ItemStack stack)
- 覆盖:
getItemBarStep在类中Item- Mappings:
Namespace Name Mixin selector official fLbpn;f(Lbpr;)Iintermediary method_31569Lnet/minecraft/class_1792;method_31569(Lnet/minecraft/class_1799;)Inamed getItemBarStepLnet/minecraft/item/Item;getItemBarStep(Lnet/minecraft/item/ItemStack;)I
-
getItemBarColor
public int getItemBarColor(ItemStack stack)
- 覆盖:
getItemBarColor在类中Item- Mappings:
Namespace Name Mixin selector official gLbpn;g(Lbpr;)Iintermediary method_31571Lnet/minecraft/class_1792;method_31571(Lnet/minecraft/class_1799;)Inamed getItemBarColorLnet/minecraft/item/Item;getItemBarColor(Lnet/minecraft/item/ItemStack;)I
-
addToBundle
private static int addToBundle(ItemStack bundle, ItemStack stack)
- Mappings:
Namespace Name Mixin selector official bLbod;b(Lbpr;Lbpr;)Iintermediary method_31560Lnet/minecraft/class_5537;method_31560(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Inamed addToBundleLnet/minecraft/item/BundleItem;addToBundle(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)I
-
canMergeStack
private static Optional<CompoundTag> canMergeStack(ItemStack stack, ListTag items)
- Mappings:
Namespace Name Mixin selector official aLbod;a(Lbpr;Lnb;)Ljava/util/Optional;intermediary method_32344Lnet/minecraft/class_5537;method_32344(Lnet/minecraft/class_1799;Lnet/minecraft/class_2499;)Ljava/util/Optional;named canMergeStackLnet/minecraft/item/BundleItem;canMergeStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/nbt/ListTag;)Ljava/util/Optional;
-
getItemOccupancy
private static int getItemOccupancy(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official kLbod;k(Lbpr;)Iintermediary method_31562Lnet/minecraft/class_5537;method_31562(Lnet/minecraft/class_1799;)Inamed getItemOccupancyLnet/minecraft/item/BundleItem;getItemOccupancy(Lnet/minecraft/item/ItemStack;)I
-
getBundleOccupancy
private static int getBundleOccupancy(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official oLbod;o(Lbpr;)Iintermediary method_31563Lnet/minecraft/class_5537;method_31563(Lnet/minecraft/class_1799;)Inamed getBundleOccupancyLnet/minecraft/item/BundleItem;getBundleOccupancy(Lnet/minecraft/item/ItemStack;)I
-
removeFirstStack
private static Optional<ItemStack> removeFirstStack(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official pLbod;p(Lbpr;)Ljava/util/Optional;intermediary method_32759Lnet/minecraft/class_5537;method_32759(Lnet/minecraft/class_1799;)Ljava/util/Optional;named removeFirstStackLnet/minecraft/item/BundleItem;removeFirstStack(Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
-
dropAllBundledItems
private static boolean dropAllBundledItems(ItemStack stack, PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official aLbod;a(Lbpr;Lbjf;)Zintermediary method_32757Lnet/minecraft/class_5537;method_32757(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Znamed dropAllBundledItemsLnet/minecraft/item/BundleItem;dropAllBundledItems(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getBundledStacks
private static Stream<ItemStack> getBundledStacks(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official qLbod;q(Lbpr;)Ljava/util/stream/Stream;intermediary method_32345Lnet/minecraft/class_5537;method_32345(Lnet/minecraft/class_1799;)Ljava/util/stream/Stream;named getBundledStacksLnet/minecraft/item/BundleItem;getBundledStacks(Lnet/minecraft/item/ItemStack;)Ljava/util/stream/Stream;
-
getTooltipData
public Optional<TooltipData> getTooltipData(ItemStack stack)
- 覆盖:
getTooltipData在类中Item- Mappings:
Namespace Name Mixin selector official hLbpn;h(Lbpr;)Ljava/util/Optional;intermediary method_32346Lnet/minecraft/class_1792;method_32346(Lnet/minecraft/class_1799;)Ljava/util/Optional;named getTooltipDataLnet/minecraft/item/Item;getTooltipData(Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
-
appendTooltip
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)
- 覆盖:
appendTooltip在类中Item- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbpr;Lbvr;Ljava/util/List;Lbre;)Vintermediary method_7851Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
-
onItemEntityDestroyed
public void onItemEntityDestroyed(ItemEntity entity)
- 覆盖:
onItemEntityDestroyed在类中Item- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbge;)Vintermediary method_33261Lnet/minecraft/class_1792;method_33261(Lnet/minecraft/class_1542;)Vnamed onItemEntityDestroyedLnet/minecraft/item/Item;onItemEntityDestroyed(Lnet/minecraft/entity/ItemEntity;)V
-
-