java.lang.Object
net.botwithus.rs3.game.scene.entities.Entity
net.botwithus.rs3.game.scene.entities.object.SceneObject
- All Implemented Interfaces:
Identifiable
,Interactable<ObjectAction>
,Onymous
,Validatable
,Locatable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.botwithus.rs3.game.scene.entities.Entity
Entity.Type
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSceneObject
(int id, Entity.Type type, Coordinate coordinate, boolean isHidden, int locTypeId, int shape, int rotation, ScenePosition scene, int animationID) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
@Nullable LocationType
Returns a defaultFunction
that throws anUnsupportedOperationException
when called.@Nullable String
getName()
Gets the options available for this Interactableint
Returns the rotation of the object.int
getShape()
Gets the shape of the object.int
hashCode()
boolean
boolean
interact
(ObjectAction type) Performs an action based on the given type.boolean
isHidden()
boolean
validate()
Gets whether the object is valid There can be many reasons aValidatable
may not be valid.Methods inherited from class net.botwithus.rs3.game.scene.entities.Entity
getArea, getCoordinate, getId, getScene, getType
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.botwithus.rs3.game.annotations.Interactable
interact, interact, interact
Methods inherited from interface net.botwithus.rs3.game.Locatable
distanceTo, isReachable
-
Constructor Details
-
SceneObject
public SceneObject(int id, Entity.Type type, Coordinate coordinate, boolean isHidden, int locTypeId, int shape, int rotation, ScenePosition scene, int animationID)
-
-
Method Details
-
getAnimationID
public int getAnimationID() -
getName
-
isHidden
public boolean isHidden() -
getOptions
Description copied from interface:Interactable
Gets the options available for this Interactable- Specified by:
getOptions
in interfaceInteractable<ObjectAction>
- Returns:
- a list of strings containing the options
-
getConfigType
-
interact
- Specified by:
interact
in interfaceInteractable<ObjectAction>
-
getDefaultMapper
Description copied from interface:Interactable
Returns a defaultFunction
that throws anUnsupportedOperationException
when called.- Specified by:
getDefaultMapper
in interfaceInteractable<ObjectAction>
- Returns:
- a default
Function
-
getShape
public int getShape()Gets the shape of the object.- Returns:
- The shape of the object.
-
getRotation
public int getRotation()Returns the rotation of the object.- Returns:
- The rotation of the object.
-
validate
public boolean validate()Description copied from interface:Validatable
Gets whether the object is valid There can be many reasons aValidatable
may not be valid. These can range from the entity has despawned, a component has closed, a coordinate is no longer in the scene, an animation sequence has ended, and many other reasons..- Specified by:
validate
in interfaceValidatable
- Returns:
- true if the object passes validation, otherwise false
-
equals
-
hashCode
public int hashCode()
-