Package net.minecraft.item
Class ItemUsage
java.lang.Object
net.minecraft.item.ItemUsage
- Mappings:
Namespace Name official cab
intermediary net/minecraft/class_5328
named net/minecraft/item/ItemUsage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypedActionResult<ItemStack>
consumeHeldItem
(World world, PlayerEntity player, Hand hand) static ItemStack
exchangeStack
(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) static ItemStack
exchangeStack
(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) static void
spawnItemContents
(ItemEntity itemEntity, Stream<ItemStack> contents)
-
Constructor Details
-
ItemUsage
public ItemUsage()
-
-
Method Details
-
consumeHeldItem
public static TypedActionResult<ItemStack> consumeHeldItem(World world, PlayerEntity player, Hand hand) - Mappings:
Namespace Name Mixin selector official a
Lcab;a(Lcga;Lbtf;Lazl;)Lazn;
intermediary method_29282
Lnet/minecraft/class_5328;method_29282(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;
named consumeHeldItem
Lnet/minecraft/item/ItemUsage;consumeHeldItem(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
-
exchangeStack
public static ItemStack exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) - Mappings:
Namespace Name Mixin selector official a
Lcab;a(Lcaa;Lbtf;Lcaa;Z)Lcaa;
intermediary method_30270
Lnet/minecraft/class_5328;method_30270(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;Z)Lnet/minecraft/class_1799;
named exchangeStack
Lnet/minecraft/item/ItemUsage;exchangeStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;Z)Lnet/minecraft/item/ItemStack;
-
exchangeStack
public static ItemStack exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) - Mappings:
Namespace Name Mixin selector official a
Lcab;a(Lcaa;Lbtf;Lcaa;)Lcaa;
intermediary method_30012
Lnet/minecraft/class_5328;method_30012(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
named exchangeStack
Lnet/minecraft/item/ItemUsage;exchangeStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
spawnItemContents
- Mappings:
Namespace Name Mixin selector official a
Lcab;a(Lbpy;Ljava/util/stream/Stream;)V
intermediary method_33263
Lnet/minecraft/class_5328;method_33263(Lnet/minecraft/class_1542;Ljava/util/stream/Stream;)V
named spawnItemContents
Lnet/minecraft/item/ItemUsage;spawnItemContents(Lnet/minecraft/entity/ItemEntity;Ljava/util/stream/Stream;)V
-