Class PlayerAttackEntityEvent

java.lang.Object
dev.ultreon.mods.xinexlib.event.player.PlayerAttackEntityEvent
All Implemented Interfaces:
LevelEvent, Cancelable

public class PlayerAttackEntityEvent extends Object implements LevelEvent, Cancelable
  • Constructor Details

    • PlayerAttackEntityEvent

      public PlayerAttackEntityEvent(net.minecraft.world.entity.player.Player attacker, net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity victim)
  • Method Details

    • getAttacker

      public net.minecraft.world.entity.player.Player getAttacker()
    • getVictim

      public net.minecraft.world.entity.Entity getVictim()
    • getLevel

      public net.minecraft.world.level.Level getLevel()
      Specified by:
      getLevel in interface LevelEvent
    • isCanceled

      public boolean isCanceled()
      Specified by:
      isCanceled in interface Cancelable
    • cancel

      public void cancel()
      Specified by:
      cancel in interface Cancelable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object