Interface TileEntityMenuBuilder

All Superinterfaces:
MenuBuilder<TileEntityMenuBuilder>

public interface TileEntityMenuBuilder extends MenuBuilder<TileEntityMenuBuilder>
Specialized menu builder for tile entity (game object and ground item) interactions.

This builder extends MenuBuilder to provide a fluent API for constructing menu actions that target entities positioned on game tiles, including game objects (scenery) and ground items.

Tile entities include:

  • Game Objects - Trees, rocks, doors, banks, furnaces, anvils, etc.
  • Ground Items - Items dropped on the floor
  • Wall Objects - Doors, gates, ladders on walls
  • Decorative Objects - Flowers, signs, and other scenery

Common tile entity interactions include:

  • Chop down - Woodcutting trees
  • Mine - Mining rocks
  • Open/Close - Doors and gates
  • Use - Interactive objects like furnaces
  • Take - Picking up ground items

Example usage:


 // Interact with a game object
 AutomatedMenu menu = menuFactory.tileObject(ObjectID.OAK_TREE, sceneX, sceneY)
     .option("Chop down")
     .build(tree.getClickPoint());

 // Pick up a ground item
 AutomatedMenu takeMenu = menuFactory.tileItem(ItemID.BONES, sceneX, sceneY)
     .option("Take")
     .build(clickPoint);
 

See Also: