Class DropItemHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.DropItemHelper
Methods for giving Pokémon drops to players.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
dropItemOnGround
(net.minecraft.world.phys.Vec3 position, net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack is, boolean ownedByPlayer, boolean announce) static void
giveItemStack
(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack is, boolean announce) Gives a stack of items to a player and drops the leftovers.
-
Method Details
-
giveItemStack
public static void giveItemStack(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack is, boolean announce) Gives a stack of items to a player and drops the leftovers.- Parameters:
player
- The player to give the item to.is
- The item to give to the player.
-
dropItemOnGround
public static void dropItemOnGround(net.minecraft.world.phys.Vec3 position, net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack is, boolean ownedByPlayer, boolean announce)
-