Class DropItemQueryList

java.lang.Object
com.pixelmonmod.pixelmon.entities.pixelmon.drops.DropItemQueryList

public class DropItemQueryList extends Object
Keeps track of drop claims that are in progress.
  • Field Details

    • queryList

      public static List<DropItemQuery> queryList
      All drop queries that are currently active.
  • Constructor Details

    • DropItemQueryList

      public DropItemQueryList()
  • Method Details

    • register

      public static void register(AbstractHoldsItemsEntity pixelmon, ArrayList<DroppedItem> givenDrops, net.minecraft.server.level.ServerPlayer player)
      Registers an instance of item drops and sends it to the client.
      Parameters:
      pixelmon - The Pokémon who dropped the items.
      givenDrops - The items that were dropped.
      player - The player receiving the items.
    • register

      public static void register(NPCTrainer npc, ArrayList<DroppedItem> givenDrops, net.minecraft.server.level.ServerPlayer player)
    • takeAllItems

      public static void takeAllItems(net.minecraft.server.level.ServerPlayer player)
    • dropAllItems

      public static void dropAllItems(net.minecraft.server.level.ServerPlayer player)
    • takeItem

      public static void takeItem(net.minecraft.server.level.ServerPlayer player, int itemID)
    • removeQuery

      public static void removeQuery(net.minecraft.server.level.ServerPlayer player)