Class DropItemHelper

java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.DropItemHelper

public final class DropItemHelper extends Object
Methods for giving Pokémon drops to players.
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)