Class RenderEvent

    • Constructor Detail

      • RenderEvent

        public RenderEvent​(long uid)
        A bitfield containing various flags:
        
         worldView = 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
         
        Type 0 = player, 1 = npc, 2 = game object, 3 = item, 4 = world entity
      • 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:
        dispatch in class ScriptEvent
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject
      • getUid

        public long getUid()
      • 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)