Package dev.twilite.game.menu
Class MenuOption.Builder
java.lang.Object
dev.twilite.game.menu.MenuOption.Builder
- Enclosing class:
MenuOption
Builder for
MenuOption.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the immutable option.clickBounds(Rectangle clickBounds) Sets the component or screen bounds used for generated mouse movement before the action.clickBounds(Rectangle clickBounds, boolean visible) Sets the component or screen bounds used for generated mouse movement before the action.component(long component) Sets the native component shared-pointer address for component actions.flags(int flags) Sets subject flags, such as stack size or component flags depending on the action.id(int id) Sets the primary action id.itemId(int itemId) Sets the subject item id.params(int p1, int p2) Sets the action parameter pair.Sets the visible option text.type(ActionType type) Sets the action type/opcode.Sets the packed entity typecode source.world(int world) Sets the world id used by world-aware actions.
-
Method Details
-
text
Sets the visible option text. -
id
Sets the primary action id. -
params
Sets the action parameter pair. -
world
Sets the world id used by world-aware actions. -
itemId
Sets the subject item id. -
flags
Sets subject flags, such as stack size or component flags depending on the action. -
component
Sets the native component shared-pointer address for component actions. -
clickBounds
Sets the component or screen bounds used for generated mouse movement before the action. -
clickBounds
Sets the component or screen bounds used for generated mouse movement before the action. -
build
Builds the immutable option.
-