Class SpielerTauschHandGegenstaendeEreignis

java.lang.Object
de.eimmer.ereignis.Ereignis
de.eimmer.ereignis.spieler.SpielerEreignis
de.eimmer.ereignis.spieler.SpielerTauschHandGegenstaendeEreignis
All Implemented Interfaces:
Abbrechbar

public class SpielerTauschHandGegenstaendeEreignis extends SpielerEreignis implements Abbrechbar
Called when a spieler swap items between main hand and off hand using the hotkey.
  • Constructor Details

  • Method Details

    • getMainHandItem

      @Nullable public GegenstandsStapel getMainHandItem()
      Gets the item switched to the main hand.
      Returns:
      item in the main hand
    • setMainHandItem

      public void setMainHandItem(@Nullable GegenstandsStapel mainHandItem)
      Sets the item in the main hand.
      Parameters:
      mainHandItem - new item in the main hand
    • getOffHandItem

      @Nullable public GegenstandsStapel getOffHandItem()
      Gets the item switched to the off hand.
      Returns:
      item in the off hand
    • setOffHandItem

      public void setOffHandItem(@Nullable GegenstandsStapel offHandItem)
      Sets the item in the off hand.
      Parameters:
      offHandItem - new item in the off hand
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Abbrechbar
      Gets the cancellation state of this ereignis. A cancelled ereignis will not be executed in the server, but will still pass to other plugins
      Specified by:
      isCancelled in interface Abbrechbar
      Returns:
      true if this ereignis is cancelled
    • setCancelled

      public void setCancelled(boolean cancel)
      Description copied from interface: Abbrechbar
      Sets the cancellation state of this ereignis. A cancelled ereignis will not be executed in the server, but will still pass to other plugins.
      Specified by:
      setCancelled in interface Abbrechbar
      Parameters:
      cancel - true if you wish to cancel this ereignis
    • getHandlers

      @NotNull public HandhaberListe getHandlers()
      Specified by:
      getHandlers in class Ereignis
    • getHandlerList

      @NotNull public static HandhaberListe getHandlerList()