Class ItemUtils
java.lang.Object
net.minecraft.world.item.ItemUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemStackcreateFilledResult(ItemStack itemStack, Player player, ItemStack newItemStack) static ItemStackcreateFilledResult(ItemStack itemStack, Player player, ItemStack newItemStack, boolean limitCreativeStackSize) static voidonContainerDestroyed(ItemEntity container, Stream<ItemStack> contents) static InteractionResultstartUsingInstantly(Level level, Player player, InteractionHand hand)
-
Constructor Details
-
ItemUtils
public ItemUtils()
-
-
Method Details
-
startUsingInstantly
public static InteractionResult startUsingInstantly(Level level, Player player, InteractionHand hand) -
createFilledResult
-
createFilledResult
-
onContainerDestroyed
-