atavism.server.events
Class NewLightEvent
java.lang.Object
atavism.server.engine.Event
atavism.server.events.NewLightEvent
- All Implemented Interfaces:
- EventParser
public class NewLightEvent
- extends Event
new light information
when receiving this event, please note that the loc information
for the point light is not set in the light.
you have to get it from the event (getLoc()) and spawn the light with it
the light is NOT spawned when a server receives this message
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 |
NewLightEvent
public NewLightEvent()
NewLightEvent
public NewLightEvent(AOByteBuffer buf,
ClientConnection con)
NewLightEvent
public NewLightEvent(OID notifyOid,
OID lightOid,
LightData lightData)
getName
public java.lang.String getName()
- Specified by:
getName
in class Event
setLightData
public void setLightData(LightData lightData)
getLightData
public LightData getLightData()
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
getLightOid
public OID getLightOid()
setLightOid
public void setLightOid(OID lightOid)