getIcon
getIcon: (NavigationButton) -> (BufferedImage | string)?The image or PNG bytes the rail draws.
NavigationButton.builder():build()| Method | Returns | Description |
|---|---|---|
getIcon() | (BufferedImage | string)? | The image or PNG bytes the rail draws. |
getTooltip() | string | The hover text. |
getOnClick() | (() -> ())? | What a panel-less button runs. |
getPanel() | PluginPanel? | The panel it opens. |
getPriority() | number | Rail order, lower first. |
getPopup() | any | The right-click menu's entries, as given to the builder. |
builder() | NavigationButtonBuilder | A new builder. |
| Method | Returns | Description |
|---|---|---|
NavigationButtonBuilder.build | NavigationButton | The button. |
getIcongetIcon: (NavigationButton) -> (BufferedImage | string)?The image or PNG bytes the rail draws.
getTooltipgetTooltip: (NavigationButton) -> stringThe hover text.
getOnClickgetOnClick: (NavigationButton) -> (() -> ())?What a panel-less button runs.
getPanelgetPanel: (NavigationButton) -> PluginPanel?The panel it opens.
getPrioritygetPriority: (NavigationButton) -> numberRail order, lower first.
getPopupgetPopup: (NavigationButton) -> anyThe right-click menu's entries, as given to the builder.
builderbuilder: () -> NavigationButtonBuilderA new builder.