Class GetFallSlowEvent


  • public final class GetFallSlowEvent
    extends PlayerEvent
    Determines the properties of the Slowness Potion Effect that the Survivors get when they fall from high above. If you want to cancel this event, set either duration to 0, or the amplifier to -1. (Potion Effect level = amplifier + 1) Default values:
    - duration: 40
    - amplifier: 1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAmplifier()
      Gets the amplifier of the Slowness Potion Effect.
      int getDuration()
      Gets the duration of the Slowness Potion Effect.
      void setAmplifier​(int amplifier)
      Sets the amplifier of the Slowness Potion Effect.
      void setDuration​(int duration)
      Sets the duration of the Slowness Potion Effect.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GetFallSlowEvent

        public GetFallSlowEvent​(Survivor survivor)
    • Method Detail

      • getDuration

        public int getDuration()
        Gets the duration of the Slowness Potion Effect.
        Returns:
        The duration in ticks.
      • setDuration

        public void setDuration​(int duration)
        Sets the duration of the Slowness Potion Effect. Set it to 0 if you want to cancel the event.
        Parameters:
        duration - The duration in ticks.
      • getAmplifier

        public int getAmplifier()
        Gets the amplifier of the Slowness Potion Effect.
        Returns:
        The amplifier. To get the actual Potion Effect level add 1 to this value.
      • setAmplifier

        public void setAmplifier​(int amplifier)
        Sets the amplifier of the Slowness Potion Effect.
        Parameters:
        amplifier - The new value of the amplifier.