Package org.rspeer.game.event
Class RandomPacketEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.rspeer.event.Event<byte[]>
-
- org.rspeer.game.event.RandomPacketEvent
-
- All Implemented Interfaces:
Serializable
public class RandomPacketEvent extends Event<byte[]>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RandomPacketEvent.Type
-
Constructor Summary
Constructors Constructor Description RandomPacketEvent(byte[] source, String username, RandomPacketEvent.Type type)
Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomPacketEvent.Type
getType()
String
getUsername()
-
Methods inherited from class org.rspeer.event.Event
consume, getSource, isConsumed
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
RandomPacketEvent
public RandomPacketEvent(byte[] source, String username, RandomPacketEvent.Type type)
Constructs a prototypical Event.- Parameters:
source
- The object on which the Event initially occurred.- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Detail
-
getUsername
public String getUsername()
-
getType
public RandomPacketEvent.Type getType()
-
-