类 ItemUtils
java.lang.Object
net.minecraft.world.item.ItemUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ItemStack
createFilledResult
(ItemStack pEmptyStack, Player pPlayer, ItemStack pFilledStack) static ItemStack
createFilledResult
(ItemStack pEmptyStack, Player pPlayer, ItemStack pFilledStack, boolean pPreventDuplicates) static void
onContainerDestroyed
(ItemEntity pItemEntity, Stream<ItemStack> pContainerContents) static InteractionResultHolder<ItemStack>
startUsingInstantly
(Level pLevel, Player pPlayer, InteractionHand pHand)
-
构造器详细资料
-
ItemUtils
public ItemUtils()
-
-
方法详细资料
-
startUsingInstantly
public static InteractionResultHolder<ItemStack> startUsingInstantly(Level pLevel, Player pPlayer, InteractionHand pHand) -
createFilledResult
-
createFilledResult
-
onContainerDestroyed
public static void onContainerDestroyed(ItemEntity pItemEntity, Stream<ItemStack> pContainerContents)
-