Package org.rspeer.game.event
Class InventoryEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.rspeer.event.Event<T>
-
- org.rspeer.game.event.GameEvent<Integer>
-
- org.rspeer.game.event.InventoryEvent
-
- All Implemented Interfaces:
Serializable
public class InventoryEvent extends GameEvent<Integer>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InventoryEvent.Type
-
Constructor Summary
Constructors Constructor Description InventoryEvent(int key, int index, IntPair current, IntPair next)
Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntPair
getCurrent()
int
getIndex()
int
getKey()
IntPair
getNext()
InventoryEvent.Type
getType()
-
Methods inherited from class org.rspeer.event.Event
consume, getSource, isConsumed
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
InventoryEvent
public InventoryEvent(int key, int index, IntPair current, IntPair next)
Constructs a prototypical Event.- Parameters:
key
- The object on which the Event initially occurred.- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Detail
-
getKey
public int getKey()
-
getIndex
public int getIndex()
-
getCurrent
public IntPair getCurrent()
-
getNext
public IntPair getNext()
-
getType
public InventoryEvent.Type getType()
-
-