atavism.server.events
Class PortalEvent
java.lang.Object
atavism.server.engine.Event
atavism.server.events.PortalEvent
- All Implemented Interfaces:
- EventParser
public class PortalEvent
- extends Event
signals that a mob is portaling - this shouldnt come from the client
because we dont check if its allowed or anything. this event
should be created by the server.
Methods inherited from class atavism.server.engine.Event |
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PortalEvent
public PortalEvent()
PortalEvent
public PortalEvent(AOObject obj,
java.lang.String worldID)
getName
public java.lang.String getName()
- Specified by:
getName
in class Event
toBytes
public AOByteBuffer toBytes()
- Specified by:
toBytes
in class Event
parseBytes
public void parseBytes(AOByteBuffer buf)
- Description copied from class:
Event
- load this event from the passed in buffer
called by the constructor
- Specified by:
parseBytes
in interface EventParser
- Specified by:
parseBytes
in class Event
setWorldID
public void setWorldID(java.lang.String worldID)
getWorldID
public java.lang.String getWorldID()