Class TileObjects

java.lang.Object
net.storm.sdk.entities.TileObjects

public class TileObjects extends Object
Static utility class for querying and interacting with tile objects.

Tile objects include game objects, wall objects, ground objects, and decorative objects. This class provides methods to find objects by ID, name, location, or custom filters.

Example usage:

 
 // Find nearest tree
 ITileObject tree = TileObjects.getNearest("Tree", "Oak", "Willow");
 if (tree != null && tree.hasAction("Chop down")) {
     tree.interact("Chop down");
 }

 // Find all objects at a location
 List<ITileObject> objects = TileObjects.getAt(myLocation, obj -> obj.hasAction("Open"));

 // Query with fluent API
 ITileObject door = TileObjects.query()
     .names("Door", "Gate")
     .actions("Open")
     .nearest();
 
 

See Also: