Class RenderEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.dreambot.api.script.event.ScriptEvent
-
- org.dreambot.api.script.event.impl.RenderEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class RenderEvent extends ScriptEvent
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRenderEvent.Type
-
Constructor Summary
Constructors Constructor Description RenderEvent()RenderEvent(long uid)A bitfield containing various flags:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(java.util.EventListener eventListener)EntitygetEntity()intgetId()intgetPlane()intgetSceneX()intgetSceneY()TilegetTile()RenderEvent.TypegetType()intgetTypeVal()longgetUid()booleanisConsumed()voidsetConsumed(boolean consumed)java.lang.StringtoString()voidupdate(long uid)-
Methods inherited from class org.dreambot.api.script.event.ScriptEvent
getTimestamp
-
-
-
-
Constructor Detail
-
RenderEvent
public RenderEvent(long uid)
A bitfield containing various flags:
Type 0 = player, 1 = npc, 2 = game object, 3 = item, 4 = world entityworldView = bits >> 52 & 4095 id = bits >> 20 & 0xffffffff wall = bits >> 19 & 1 type = bits >> 16 & 7 plane = bits >> 14 & 3 scene y = bits >> 7 & 127 scene x = bits >> 0 & 127
-
RenderEvent
public RenderEvent()
-
-
Method Detail
-
update
public void update(long uid)
-
getTile
public Tile getTile()
-
getEntity
public Entity getEntity()
-
dispatch
public void dispatch(java.util.EventListener eventListener)
- Specified by:
dispatchin classScriptEvent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.EventObject
-
getUid
public long getUid()
-
getType
public RenderEvent.Type getType()
-
getId
public int getId()
-
getTypeVal
public int getTypeVal()
-
getPlane
public int getPlane()
-
getSceneY
public int getSceneY()
-
getSceneX
public int getSceneX()
-
isConsumed
public boolean isConsumed()
-
setConsumed
public void setConsumed(boolean consumed)
-
-