Package net.minecraft.item
Class ItemUsage
java.lang.Object
net.minecraft.item.ItemUsage
public class ItemUsage extends Object
- Mappings:
Namespace Name official bnwintermediary net/minecraft/class_5328named net/minecraft/item/ItemUsage
-
Constructor Summary
Constructors Constructor Description ItemUsage() -
Method Summary
Modifier and Type Method Description static TypedActionResult<ItemStack>consumeHeldItem(World world, PlayerEntity player, Hand hand)static ItemStackexchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack)static ItemStackexchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride)static Optional<ActionResult>fillEntityBucket(PlayerEntity player, Hand hand, LivingEntity entity, SoundEvent sound, Supplier<ItemStack> supplier)static voidspawnItemContents(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 aLbnw;a(Lbtv;Lbhl;Lapp;)Lapr;intermediary method_29282Lnet/minecraft/class_5328;method_29282(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;named consumeHeldItemLnet/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 aLbnw;a(Lbnv;Lbhl;Lbnv;Z)Lbnv;intermediary method_30270Lnet/minecraft/class_5328;method_30270(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;Z)Lnet/minecraft/class_1799;named exchangeStackLnet/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 aLbnw;a(Lbnv;Lbhl;Lbnv;)Lbnv;intermediary method_30012Lnet/minecraft/class_5328;method_30012(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;named exchangeStackLnet/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 aLbnw;a(Lbek;Ljava/util/stream/Stream;)Vintermediary method_33263Lnet/minecraft/class_5328;method_33263(Lnet/minecraft/class_1542;Ljava/util/stream/Stream;)Vnamed spawnItemContentsLnet/minecraft/item/ItemUsage;spawnItemContents(Lnet/minecraft/entity/ItemEntity;Ljava/util/stream/Stream;)V
-
fillEntityBucket
public static Optional<ActionResult> fillEntityBucket(PlayerEntity player, Hand hand, LivingEntity entity, SoundEvent sound, Supplier<ItemStack> supplier)- Mappings:
Namespace Name Mixin selector official aLbnw;a(Lbhl;Lapp;Lari;Laef;Ljava/util/function/Supplier;)Ljava/util/Optional;intermediary method_33264Lnet/minecraft/class_5328;method_33264(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1309;Lnet/minecraft/class_3414;Ljava/util/function/Supplier;)Ljava/util/Optional;named fillEntityBucketLnet/minecraft/item/ItemUsage;fillEntityBucket(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/sound/SoundEvent;Ljava/util/function/Supplier;)Ljava/util/Optional;
-