Class Pickable

java.lang.Object
org.rspeer.game.adapter.Adapter<jag.oldscape.RSPickable>
org.rspeer.game.adapter.scene.Entity<jag.oldscape.RSPickable>
org.rspeer.game.adapter.scene.Pickable
All Implemented Interfaces:
Actionable, Identifiable, Interactable, Nameable, SceneNode

public class Pickable extends Entity<jag.oldscape.RSPickable> implements Identifiable, Nameable
  • Constructor Details

    • Pickable

      public Pickable(jag.oldscape.RSPickable provider, Coord position, jag.oldscape.RSWorldMatrix matrix)
    • Pickable

      public Pickable(jag.oldscape.RSPickable provider, int x, int y, int floorLevel, jag.oldscape.RSWorldMatrix matrix)
  • Method Details

    • getMatrixId

      public int getMatrixId()
      Specified by:
      getMatrixId in interface SceneNode
    • getPosition

      public Position getPosition()
      Specified by:
      getPosition in interface SceneNode
    • getCoord

      public Coord getCoord()
      Specified by:
      getCoord in interface SceneNode
    • getCoordFine

      public CoordFine getCoordFine()
      Specified by:
      getCoordFine in interface SceneNode
    • actionOf

      public MenuAction actionOf(String action)
      Specified by:
      actionOf in interface Interactable
    • getRawActions

      public String[] getRawActions()
      Specified by:
      getRawActions in interface Actionable
    • getActions

      public List<String> getActions()
      Specified by:
      getActions in interface Actionable
    • getDefinition

      public ItemDefinition getDefinition()
    • getRevealTick

      public int getRevealTick()
    • getDespawnTick

      public int getDespawnTick()
    • getOwnerType

      public int getOwnerType()
      Ownership table: ``` | Id | Ownership Type | |----|:--------------:| | 0 | None | | 1 | Self Player | | 2 | Other Player | | 3 | Group Ironman | ``` Note that if the player and the drop source are both regular accounts, both will share the same group ironman id of -1 so the server is bugged to send 3 in this instance.
      Returns:
      Owner type
    • isNeverRevealed

      public boolean isNeverRevealed()
    • getId

      public int getId()
      Specified by:
      getId in interface Identifiable
    • getStackSize

      public int getStackSize()
    • getName

      public String getName()
      Specified by:
      getName in interface Nameable
    • getEntityIndex

      public int getEntityIndex()
      Specified by:
      getEntityIndex in class Entity<jag.oldscape.RSPickable>