Package com.valhalla.sdk.api.entities
Interface GameObject
- All Superinterfaces:
Identifiable,Interactable,Locatable,Nameable
- All Known Implementing Classes:
SceneObject
Scene object that exposes identity, location, name, and native interaction.
Objects are snapshots. Re-query GameObjects after scene changes rather
than retaining an instance indefinitely.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleaninteract(ObjectAction action) Dispatches an ordered object menu action.Methods inherited from interface com.valhalla.sdk.api.entities.Identifiable
getIdMethods inherited from interface com.valhalla.sdk.api.entities.Interactable
interactMethods inherited from interface com.valhalla.sdk.api.entities.Locatable
canReach, canReach, distance, distanceTo, getGridX, getGridY, getPlane, getRegionId, getTile, getX, getY, getZ, isInArea, isWithinDistance, walkingDistance
-
Method Details
-
interact
Dispatches an ordered object menu action.- Parameters:
action- menu position to dispatch- Returns:
truewhen the runtime accepted the action, not when gameplay completed it
-