Package org.rspeer.game.adapter.scene
Class Pickable
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<P>
-
- org.rspeer.game.adapter.scene.Entity<RSPickable>
-
- org.rspeer.game.adapter.scene.Pickable
-
- All Implemented Interfaces:
Actionable
,Identifiable
,Interactable
,Nameable
,SceneNode
public class Pickable extends Entity<RSPickable> implements Identifiable, Nameable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Actionable
Actionable.Query<Q extends Actionable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Identifiable
Identifiable.Query<Q extends Identifiable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Nameable
Nameable.Query<Q extends Nameable.Query<Q>>
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.SceneNode
SceneNode.Query<Q extends SceneNode.Query<Q>>
-
-
Constructor Summary
Constructors Constructor Description Pickable(RSPickable provider, int x, int y, int floorLevel)
Pickable(RSPickable provider, Position position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenuAction
actionOf(String action)
List<String>
getActions()
ItemDefinition
getDefinition()
int
getDespawnTick()
int
getId()
String
getName()
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.Position
getPosition()
String[]
getRawActions()
int
getRevealTick()
int
getStackSize()
boolean
isNeverRevealed()
-
Methods inherited from class org.rspeer.game.adapter.scene.Entity
getHeight, getModel, getModelPosition
-
Methods inherited from class org.rspeer.game.adapter.Adapter
getProvider, validate
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rspeer.game.adapter.type.Actionable
containsAction, containsAction
-
Methods inherited from interface org.rspeer.game.adapter.type.Interactable
actionOf, interact, interact, interact, interact, interact
-
Methods inherited from interface org.rspeer.game.adapter.type.SceneNode
distance, distance, distance, distance, getArea, getEntityPositionHeight, getEntityPositionWidth, getFloorLevel, getX, getY, isInFieldOfViewOf, isInFieldOfViewOf
-
-
-
-
Constructor Detail
-
Pickable
public Pickable(RSPickable provider, Position position)
-
Pickable
public Pickable(RSPickable provider, int x, int y, int floorLevel)
-
-
Method Detail
-
getPosition
public Position getPosition()
- Specified by:
getPosition
in interfaceSceneNode
- Specified by:
getPosition
in classEntity<RSPickable>
-
actionOf
public MenuAction actionOf(String action)
- Specified by:
actionOf
in interfaceInteractable
-
getRawActions
public String[] getRawActions()
- Specified by:
getRawActions
in interfaceActionable
-
getActions
public List<String> getActions()
- Specified by:
getActions
in interfaceActionable
-
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 interfaceIdentifiable
-
getStackSize
public int getStackSize()
-
-