Class DropItemQueryList
java.lang.Object
com.pixelmonmod.pixelmon.entities.pixelmon.drops.DropItemQueryList
Keeps track of drop claims that are in progress.
-
Field Summary
Modifier and TypeFieldDescriptionstatic List<DropItemQuery>
All drop queries that are currently active. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
dropAllItems
(net.minecraft.server.level.ServerPlayer player) static void
register
(NPCTrainer npc, ArrayList<DroppedItem> givenDrops, net.minecraft.server.level.ServerPlayer player) 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.static void
removeQuery
(net.minecraft.server.level.ServerPlayer player) static void
takeAllItems
(net.minecraft.server.level.ServerPlayer player) static void
takeItem
(net.minecraft.server.level.ServerPlayer player, int itemID)
-
Field Details
-
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)
-