Package net.minecraft.item
Class ItemUsage
java.lang.Object
net.minecraft.item.ItemUsage
public class ItemUsage extends Object
-
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 voidmethod_33263(ItemEntity itemEntity, Stream<ItemStack> stream)static Optional<ActionResult>method_33264(PlayerEntity playerEntity, Hand hand, LivingEntity livingEntity, SoundEvent soundEvent, Supplier<ItemStack> supplier)
-
Constructor Details
-
ItemUsage
public ItemUsage()
-
-
Method Details
-
consumeHeldItem
public static TypedActionResult<ItemStack> consumeHeldItem(World world, PlayerEntity player, Hand hand) -
exchangeStack
public static ItemStack exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) -
exchangeStack
public static ItemStack exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) -
method_33263
-
method_33264
public static Optional<ActionResult> method_33264(PlayerEntity playerEntity, Hand hand, LivingEntity livingEntity, SoundEvent soundEvent, Supplier<ItemStack> supplier)
-