Class DenEvent.Interact

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.raids.DenEvent
com.pixelmonmod.pixelmon.api.events.raids.DenEvent.Interact
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
DenEvent

public static class DenEvent.Interact extends DenEvent implements net.neoforged.bus.api.ICancellableEvent
  • Constructor Details

    • Interact

      public Interact(DenEntity den, net.minecraft.world.entity.player.Player player, boolean rightClick)
  • Method Details

    • getPlayer

      public net.minecraft.world.entity.player.Player getPlayer()
      Returns:
      The player interacting with the den.
    • wasRightClick

      public boolean wasRightClick()
      Returns:
      Whether this was a right click.
    • wasLeftClick

      public boolean wasLeftClick()
      Returns:
      Whether this was a left click.