public final class DropItemHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
dropItemOnGround(net.minecraft.util.math.vector.Vector3d position,
net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack is,
boolean ownedByPlayer,
boolean announce) |
static void |
giveItemStack(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack is,
boolean announce)
Gives a stack of items to a player and drops the leftovers.
|
public static void giveItemStack(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack is,
boolean announce)
player - The player to give the item to.is - The item to give to the player.public static void dropItemOnGround(net.minecraft.util.math.vector.Vector3d position,
net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack is,
boolean ownedByPlayer,
boolean announce)