Class PokeLootEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PokeLootEvent
Direct Known Subclasses:
PokeLootEvent.Claim, PokeLootEvent.Drop, PokeLootEvent.GetDrops

public abstract class PokeLootEvent extends net.minecraftforge.eventbus.api.Event
Superclass event for actions related to Poke Loot. Replacement of PokeLootClaimedEvent.

Subclasses: PokeLootEvent.Claim, PokeLootEvent.GetDrops, PokeLootEvent.Drop

Since:
April 28, 2021
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event that fires when a Poke Loot is attempted to be claimed.
    static class 
    Event that fires when loot is given from a Poke Loot.
    static class 
    Event that fires when a Poke Loot in the process of being claimed chooses its drops.

    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
    Modifier and Type
    Field
    Description
    The tile entity of this Poke Loot.
    net.minecraft.server.level.ServerPlayer
    The player attempting to collect the Poke Loot.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PokeLootEvent(net.minecraft.server.level.ServerPlayer player, PokeChestTileEntity tile)
     
  • Method Summary

    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
  • Field Details

    • chest

      public PokeChestTileEntity chest
      The tile entity of this Poke Loot.
    • player

      public net.minecraft.server.level.ServerPlayer player
      The player attempting to collect the Poke Loot.
  • Constructor Details

    • PokeLootEvent

      public PokeLootEvent(net.minecraft.server.level.ServerPlayer player, PokeChestTileEntity tile)