Class PlayerCriticalAttackEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.mineplex.studio.events.PlayerCriticalAttackEvent
All Implemented Interfaces:
Cancellable

public class PlayerCriticalAttackEvent extends PlayerEvent implements Cancellable
  • Constructor Details

    • PlayerCriticalAttackEvent

      public PlayerCriticalAttackEvent(@NotNull @NotNull Player who, boolean isCritical, @NotNull @NotNull Entity targetEntity, float baseDamage, float attackStrengthScale, boolean criticalDisabled)
  • Method Details

    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • isCancelled

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

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

      public boolean isCritical()
    • getDamageToCriticalDamage

      @NotNull public @NotNull it.unimi.dsi.fastutil.floats.Float2FloatFunction getDamageToCriticalDamage()
    • getTargetEntity

      @NotNull public @NotNull Entity getTargetEntity()
    • getBaseDamage

      public float getBaseDamage()
    • getAttackStrengthScale

      public float getAttackStrengthScale()
    • isCriticalDisabled

      public boolean isCriticalDisabled()
    • setCritical

      public void setCritical(boolean isCritical)
    • setDamageToCriticalDamage

      public void setDamageToCriticalDamage(@NotNull @NotNull it.unimi.dsi.fastutil.floats.Float2FloatFunction damageToCriticalDamage)
    • 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