Class PokeLootEvent.Drop

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PokeLootEvent
com.pixelmonmod.pixelmon.api.events.PokeLootEvent.Drop
Enclosing class:
PokeLootEvent

public static class PokeLootEvent.Drop extends PokeLootEvent
Event that fires when loot is given from a Poke Loot. Cancel to prevent giving of the drop.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.PokeLootEvent

    PokeLootEvent.Claim, PokeLootEvent.Drop, PokeLootEvent.GetDrops

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields inherited from class com.pixelmonmod.pixelmon.api.events.PokeLootEvent

    chest, player
  • Constructor Summary

    Constructors
    Constructor
    Description
    Drop(net.minecraft.server.level.ServerPlayer player, PokeChestTileEntity tile, net.minecraft.world.item.ItemStack drop)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
     
    void
    setDrop(net.minecraft.world.item.ItemStack drop)
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Drop

      public Drop(net.minecraft.server.level.ServerPlayer player, PokeChestTileEntity tile, net.minecraft.world.item.ItemStack drop)
  • Method Details

    • getDrop

      public net.minecraft.world.item.ItemStack getDrop()
    • setDrop

      public void setDrop(net.minecraft.world.item.ItemStack drop)