nl.mightydev.FastScrollEvent
Class PlayerFastScrollEvent

java.lang.Object
  extended by Event
      extended by nl.mightydev.FastScrollEvent.PlayerFastScrollEvent

public class PlayerFastScrollEvent
extends Event

PlayerFastScrollEvent is used as the data class for the scroll event.

Author:
mick

Constructor Summary
PlayerFastScrollEvent(Player player, int scroll_amount)
          The constructor of PlayerFastScrollEvent does not do anything special.
 
Method Summary
 Player getPlayer()
           
 int getScrollAmount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerFastScrollEvent

public PlayerFastScrollEvent(Player player,
                             int scroll_amount)
The constructor of PlayerFastScrollEvent does not do anything special. It is only intended to be used by the FastScrollEvent plugin itself.

Parameters:
player - The player that scrolls intensively
scroll_amount - The scroll amount
Method Detail

getPlayer

public Player getPlayer()
Returns:
returns the player that scrolled intensively

getScrollAmount

public int getScrollAmount()
Returns:
returns the scroll amount. This value will probably vary between 12 and 16 The scroll amount is not very reliable. Scrolling faster doesn't mean that the value will always be higher. This is caused by the lack of updates sent from the client.