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
ConstructorsConstructorDescriptionSceneObject(int id, Entity.Type type, Coordinate coordinate, boolean isHidden, int locTypeId, int shape, int rotation, ScenePosition scene, int animationID) -
Method Summary
Modifier and TypeMethodDescriptionbooleanint@Nullable LocationTypeReturns a defaultFunctionthat throws anUnsupportedOperationExceptionwhen called.@Nullable StringgetName()Gets the options available for this InteractableintReturns the rotation of the object.intgetShape()Gets the shape of the object.inthashCode()booleanbooleaninteract(ObjectAction type) Performs an action based on the given type.booleanisHidden()booleanvalidate()Gets whether the object is valid There can be many reasons aValidatablemay not be valid.Methods inherited from class net.botwithus.rs3.game.scene.entities.Entity
getArea, getCoordinate, getId, getScene, getTypeMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.botwithus.rs3.game.annotations.Interactable
interact, interact, interactMethods 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:InteractableGets the options available for this Interactable- Specified by:
getOptionsin interfaceInteractable<ObjectAction>- Returns:
- a list of strings containing the options
-
getConfigType
-
interact
- Specified by:
interactin interfaceInteractable<ObjectAction>
-
getDefaultMapper
Description copied from interface:InteractableReturns a defaultFunctionthat throws anUnsupportedOperationExceptionwhen called.- Specified by:
getDefaultMapperin 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:ValidatableGets whether the object is valid There can be many reasons aValidatablemay 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:
validatein interfaceValidatable- Returns:
- true if the object passes validation, otherwise false
-
equals
-
hashCode
public int hashCode()
-