Index
All Classes and Interfaces|All Packages
A
- ACCENT - Enum constant in enum class io.prismmc.prism.dashboard.Tone
-
Prism's violet: what matters most, the main button.
- action(String, ActionHandler) - Method in interface io.prismmc.prism.dashboard.Extension
-
An action the pages run, from a button or a form, and the plugin's own views from their script.
- action(String, String) - Method in interface io.prismmc.prism.dashboard.View.Buttons
-
A button that runs an action.
- Action - Interface in io.prismmc.prism.dashboard
-
An action of an extension, as
Extension.action(String, ActionHandler)made it. - ActionContext - Interface in io.prismmc.prism.dashboard
-
An action as it runs: who runs it, from which page, and its values: a form's fields, a button's
View.Button.with(String, Object), or what a view's script sent. - ActionHandler - Interface in io.prismmc.prism.dashboard
-
What an action does, answering at once.
- add(String, double) - Method in interface io.prismmc.prism.dashboard.View.Bars
- add(String, double) - Method in interface io.prismmc.prism.dashboard.View.Stats
-
A number, written the way of the dashboard's language, and counted up to when it changes.
- add(String, double, Tone) - Method in interface io.prismmc.prism.dashboard.View.Bars
- add(String, String) - Method in interface io.prismmc.prism.dashboard.View.Facts
- add(String, String) - Method in interface io.prismmc.prism.dashboard.View.Stats
-
A figure shown as given.
- assets(String) - Method in interface io.prismmc.prism.dashboard.Extension
-
Where the plugin's web files are in its jar, for
Page.view(String)andView.frame(String):dashboarduntil set. - assets(Path) - Method in interface io.prismmc.prism.dashboard.Extension
-
Web files from a folder on disk instead of the jar, read again at each request: while working on a view, a change shows on the next reload of the page.
- ASYNC - Enum constant in enum class io.prismmc.prism.dashboard.Execution
-
A thread of the plugin's own, off the server's: for what the plugin keeps in memory, files, a database.
- asyncAction(String, AsyncActionHandler) - Method in interface io.prismmc.prism.dashboard.Extension
-
An action that answers later, when its future completes: to go and work on the thread of an entity or a region, or to wait for a database.
- AsyncActionHandler - Interface in io.prismmc.prism.dashboard
-
What an action does, answering when its future completes: work on the thread of an entity or a region (
ActionContext.entity(Entity, Supplier),ActionContext.region(Location, Supplier)), a database, a web service. - AsyncPlayerTeleportEvent - Class in io.prismmc.prism.event.player
-
Called before a player is teleported through
Entity.teleportAsync(Location): by a plugin, a command, or the server. - AsyncPlayerTeleportEvent(Player, Location, Location, PlayerTeleportEvent.TeleportCause) - Constructor for class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
- AsyncPlayerWorldChangeEvent - Class in io.prismmc.prism.event.player
-
Called once a player is in another world after a teleport through
Entity.teleportAsync(Location). - AsyncPlayerWorldChangeEvent(Player, Location, PlayerTeleportEvent.TeleportCause) - Constructor for class io.prismmc.prism.event.player.AsyncPlayerWorldChangeEvent
- available() - Static method in class io.prismmc.prism.dashboard.Dashboard
-
Whether the server provides the dashboard's API.
B
- BAD - Enum constant in enum class io.prismmc.prism.dashboard.Tone
-
Red: wrong, or cannot be undone.
- badge(String, Tone) - Method in interface io.prismmc.prism.dashboard.View.Row
- bars(Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
Horizontal bars, each against the longest: a ranking, a share.
- bool(String) - Method in interface io.prismmc.prism.dashboard.ActionContext
- buttons(Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
A row of buttons.
- buttons(Consumer) - Method in interface io.prismmc.prism.dashboard.View.Row
C
- card(String, Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
A card: a title over the blocks its view holds.
- changesWorld() - Method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
-
Whether the player changes world with this teleport, as it stands.
- channel(String, String) - Method in interface io.prismmc.prism.dashboard.Extension
-
The permission needed to receive a channel's data, on top of the extension's and the shown page's.
- chart(Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
A chart of lines over time.
- column(String) - Method in interface io.prismmc.prism.dashboard.View.Table
-
A column, in order.
- columns(int, Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
Blocks side by side, as many per row as fit up to
count, one under the other on a phone. - confirm(String) - Method in interface io.prismmc.prism.dashboard.View.Button
- confirm(String) - Method in interface io.prismmc.prism.dashboard.View.Form
D
- Dashboard - Class in io.prismmc.prism.dashboard
-
Prism's web dashboard, as plugins see it: where a plugin gets its
Extension. - Dashboard.Provider - Interface in io.prismmc.prism.dashboard
-
What the server implements behind
Dashboard. - data() - Method in class io.prismmc.prism.dashboard.Result
- data(Object) - Method in class io.prismmc.prism.dashboard.Result
- date(long) - Method in interface io.prismmc.prism.dashboard.View.Row
- decimal(String, double) - Method in interface io.prismmc.prism.dashboard.ActionContext
- decimals(int) - Method in interface io.prismmc.prism.dashboard.View.Bars
- decimals(int) - Method in interface io.prismmc.prism.dashboard.View.Chart
- decimals(int) - Method in interface io.prismmc.prism.dashboard.View.Stat
E
- empty(String) - Method in interface io.prismmc.prism.dashboard.View
-
A quiet line saying there is nothing to show.
- empty(String) - Method in interface io.prismmc.prism.dashboard.View.Table
- enabled() - Static method in class io.prismmc.prism.dashboard.Dashboard
-
Whether the dashboard is switched on in the server's configuration.
- enabled() - Method in interface io.prismmc.prism.dashboard.Dashboard.Provider
- entity(Entity, Supplier) - Method in interface io.prismmc.prism.dashboard.ActionContext
-
Work on the thread of an entity's region, the one allowed to change it.
- error(String) - Static method in class io.prismmc.prism.dashboard.Result
- Execution - Enum Class in io.prismmc.prism.dashboard
-
Where a page's renderer or an action's handler runs.
- extension(Plugin) - Static method in class io.prismmc.prism.dashboard.Dashboard
-
The extension of a plugin: made at the first call, the same one after.
- extension(Plugin) - Method in interface io.prismmc.prism.dashboard.Dashboard.Provider
- Extension - Interface in io.prismmc.prism.dashboard
-
A plugin's place in the dashboard: a link in the sidebar, its pages, and the actions they run.
F
- facts(Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
Pairs of a label and a value, one under the other.
- form(String, Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
A form, sent to an action with the values of its fields (
ActionContext.string(String)...). - frame(String) - Method in interface io.prismmc.prism.dashboard.View
-
One of the plugin's own web pages, in a frame among the blocks, as tall as its content.
- frame(String, int) - Method in interface io.prismmc.prism.dashboard.View
-
One of the plugin's own web pages, in a frame of a given height.
G
- getCause() - Method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
-
Why the player is teleported.
- getCause() - Method in class io.prismmc.prism.event.player.AsyncPlayerWorldChangeEvent
-
Why the player was teleported.
- getFrom() - Method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
-
Where the player is before the teleport.
- getFrom() - Method in class io.prismmc.prism.event.player.AsyncPlayerWorldChangeEvent
-
The world the player left; the new one is the player's world.
- getFromLocation() - Method in class io.prismmc.prism.event.player.AsyncPlayerWorldChangeEvent
-
Where in that world the player was.
- getHandlerList() - Static method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
- getHandlerList() - Static method in class io.prismmc.prism.event.player.AsyncPlayerWorldChangeEvent
- getHandlers() - Method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
- getHandlers() - Method in class io.prismmc.prism.event.player.AsyncPlayerWorldChangeEvent
- getTo() - Method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
-
Where the player is about to be teleported.
- global(Supplier) - Method in interface io.prismmc.prism.dashboard.ActionContext
-
Work on the global region thread, the one of world-wide state.
- GLOBAL - Enum constant in enum class io.prismmc.prism.dashboard.Execution
-
The global region thread, between two of its ticks, as a command from the console.
- GOOD - Enum constant in enum class io.prismmc.prism.dashboard.Tone
-
Green: all is well.
H
- handle(ActionContext) - Method in interface io.prismmc.prism.dashboard.ActionHandler
-
Does the action.
- handle(ActionContext) - Method in interface io.prismmc.prism.dashboard.AsyncActionHandler
-
Starts the action.
- has(String) - Method in interface io.prismmc.prism.dashboard.ActionContext
- height(int) - Method in interface io.prismmc.prism.dashboard.View.Chart
- help(String) - Method in interface io.prismmc.prism.dashboard.View.Field
- hidden() - Method in interface io.prismmc.prism.dashboard.Page
-
Keeps the page out of the tabs: it opens from a button (
View.Buttons.open(String, String)) or after an action (Result.navigate(String)), as the detail of something. - hidden(String, Object) - Method in interface io.prismmc.prism.dashboard.View.Form
I
- icon(String) - Method in interface io.prismmc.prism.dashboard.Extension
-
The icon in the sidebar: the name of one of the dashboard's icons (
overview,regions,players,console,maintenance,config,pack,plug,server,clock,globe,send,backup,heat,save,info...), or the path data of a line drawing on a 24 by 24 grid ("M4 6h16 M4 12h16"), drawn with the dashboard's stroke. - icon(String) - Method in interface io.prismmc.prism.dashboard.View.Button
- id() - Method in interface io.prismmc.prism.dashboard.Action
- id() - Method in interface io.prismmc.prism.dashboard.Extension
- id() - Method in interface io.prismmc.prism.dashboard.Page
- input() - Method in interface io.prismmc.prism.dashboard.ActionContext
- integer(String, long) - Method in interface io.prismmc.prism.dashboard.ActionContext
- io.prismmc.prism.dashboard - package io.prismmc.prism.dashboard
-
Pages of a plugin's own in Prism's web dashboard, and actions to run from them.
- io.prismmc.prism.event.player - package io.prismmc.prism.event.player
- isCancelled() - Method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
- isOk() - Method in class io.prismmc.prism.dashboard.Result
L
- language() - Method in interface io.prismmc.prism.dashboard.Viewer
- length(int) - Method in interface io.prismmc.prism.dashboard.View.Field
- link(String, String) - Method in interface io.prismmc.prism.dashboard.View.Buttons
-
A button that opens an address outside the dashboard, in a new tab.
M
- max(double) - Method in interface io.prismmc.prism.dashboard.View.Chart
- max(double) - Method in interface io.prismmc.prism.dashboard.View.Field
- may(String) - Method in interface io.prismmc.prism.dashboard.Viewer
-
Whether they have a permission.
- message() - Method in class io.prismmc.prism.dashboard.Result
- min(double) - Method in interface io.prismmc.prism.dashboard.View.Chart
- min(double) - Method in interface io.prismmc.prism.dashboard.View.Field
N
- name() - Method in interface io.prismmc.prism.dashboard.Viewer
- navigate(String) - Method in class io.prismmc.prism.dashboard.Result
- navigate(String, Map) - Method in class io.prismmc.prism.dashboard.Result
- navigation() - Method in class io.prismmc.prism.dashboard.Result
- NEUTRAL - Enum constant in enum class io.prismmc.prism.dashboard.Tone
-
The text's own colour; for a paragraph, a quieter one.
- notice(Tone, String) - Method in interface io.prismmc.prism.dashboard.View
-
A notice that stands out: a warning, a success, an error.
- number(double) - Method in interface io.prismmc.prism.dashboard.View.Row
- number(double, int) - Method in interface io.prismmc.prism.dashboard.View.Row
- number(String, String) - Method in interface io.prismmc.prism.dashboard.View.Form
O
- ok() - Static method in class io.prismmc.prism.dashboard.Result
- ok(String) - Static method in class io.prismmc.prism.dashboard.Result
- on(Execution) - Method in interface io.prismmc.prism.dashboard.Action
-
Where the handler runs: the global region thread (
Execution.GLOBAL) until set, like a command from the console. - on(Execution) - Method in interface io.prismmc.prism.dashboard.Page
-
Where the renderer runs: off the server's threads (
Execution.ASYNC) until set. - open(String, String) - Method in interface io.prismmc.prism.dashboard.View.Buttons
-
A button that opens another page of the extension.
- option(String, String) - Method in interface io.prismmc.prism.dashboard.View.Field
-
A choice of a select.
P
- page() - Method in interface io.prismmc.prism.dashboard.ActionContext
- page(String) - Method in interface io.prismmc.prism.dashboard.Action
-
Ties the action to a page: only the sessions that may see that page run it, so the page's permission covers it too, and
ActionContext.page()is always that page. - page(String) - Method in interface io.prismmc.prism.dashboard.Extension
-
A page: made at the first call, the same one after.
- page(String, Consumer) - Method in interface io.prismmc.prism.dashboard.Extension
-
A page, set up at once.
- Page - Interface in io.prismmc.prism.dashboard
-
One page of an extension: drawn from what its
Rendererdescribes, or the plugin's own web page (Page.view(String)). - pages(int) - Method in interface io.prismmc.prism.dashboard.View.Table
- param(String) - Method in interface io.prismmc.prism.dashboard.Viewer
-
A parameter of the page's address, as
View.Button.with(String, Object)orResult.navigate(String, Map)gave it. - params() - Method in class io.prismmc.prism.dashboard.Result
- params() - Method in interface io.prismmc.prism.dashboard.Viewer
- permission(String) - Method in interface io.prismmc.prism.dashboard.Action
-
The permission needed to run the action, on top of the extension's.
- permission(String) - Method in interface io.prismmc.prism.dashboard.Extension
-
The permission a dashboard user needs to see this extension at all.
- permission(String) - Method in interface io.prismmc.prism.dashboard.Page
-
The permission needed to see this page, on top of the extension's.
- permissions(String...) - Method in interface io.prismmc.prism.dashboard.Extension
-
Other permissions the pages check with
Viewer.may(String). - placeholder(String) - Method in interface io.prismmc.prism.dashboard.View.Field
- player(String) - Method in interface io.prismmc.prism.dashboard.ActionContext
- player(String, String) - Method in interface io.prismmc.prism.dashboard.View.Form
- player(UUID, String) - Method in interface io.prismmc.prism.dashboard.View.Row
-
A player: their head and their name.
- plugin() - Method in interface io.prismmc.prism.dashboard.Extension
- progress(String, double) - Method in interface io.prismmc.prism.dashboard.View
-
A progress bar.
- progress(String, double, Tone) - Method in interface io.prismmc.prism.dashboard.View
-
A progress bar of a colour.
- provide(Dashboard.Provider) - Static method in class io.prismmc.prism.dashboard.Dashboard
-
Prism's side of the API.
- push(String, Object) - Method in interface io.prismmc.prism.dashboard.Extension
-
Sends data to this extension's own views that listen on a channel (
prism.on(channel, ...)in their script).
R
- range(String, String, double, double) - Method in interface io.prismmc.prism.dashboard.View.Form
- refresh() - Method in interface io.prismmc.prism.dashboard.Extension
-
Every dashboard showing a page of this extension draws it again.
- refresh(boolean) - Method in class io.prismmc.prism.dashboard.Result
- refresh(String) - Method in interface io.prismmc.prism.dashboard.Extension
-
Every dashboard showing that page draws it again: after a change the page shows, from wherever the change happened.
- refreshes() - Method in class io.prismmc.prism.dashboard.Result
- refreshEvery(Duration) - Method in interface io.prismmc.prism.dashboard.Page
-
Draws the page again on its own, at this pace, while a dashboard shows it.
- region(Location, Supplier) - Method in interface io.prismmc.prism.dashboard.ActionContext
-
Work on the thread of the region of a place.
- render(Renderer) - Method in interface io.prismmc.prism.dashboard.Page
-
What describes the page, called for each dashboard that shows it, each time it is drawn.
- render(View, Viewer) - Method in interface io.prismmc.prism.dashboard.Renderer
-
Describes the page.
- Renderer - Interface in io.prismmc.prism.dashboard
-
Describes a page, for one dashboard, each time it is drawn.
- required() - Method in interface io.prismmc.prism.dashboard.View.Field
- Result - Class in io.prismmc.prism.dashboard
-
What an action answers: a message for the dashboard to show, whether the page is drawn again, the page to go to, and data for a view's script.
- row() - Method in interface io.prismmc.prism.dashboard.View.Table
S
- search() - Method in interface io.prismmc.prism.dashboard.View.Table
- select(String, String) - Method in interface io.prismmc.prism.dashboard.View.Form
- series(String, Tone, List) - Method in interface io.prismmc.prism.dashboard.View.Chart
-
A line: one value per moment.
- setCancelled(boolean) - Method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
-
Cancels the teleport: the player stays where they are.
- setTo(Location) - Method in class io.prismmc.prism.event.player.AsyncPlayerTeleportEvent
-
Sends the player somewhere else, in this world or another one.
- sort() - Method in interface io.prismmc.prism.dashboard.View.Table
- spark(List) - Method in interface io.prismmc.prism.dashboard.View.Stat
- stats(Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
A row of figures, each in a tile.
- step(double) - Method in interface io.prismmc.prism.dashboard.View.Field
- string(String) - Method in interface io.prismmc.prism.dashboard.ActionContext
- string(String, String) - Method in interface io.prismmc.prism.dashboard.ActionContext
- sub(String) - Method in interface io.prismmc.prism.dashboard.View.Stat
- submit(String) - Method in interface io.prismmc.prism.dashboard.View.Form
- submit(String, Tone) - Method in interface io.prismmc.prism.dashboard.View.Form
- subtitle(String) - Method in interface io.prismmc.prism.dashboard.View
-
The line under the page's title.
- suggest(String...) - Method in interface io.prismmc.prism.dashboard.View.Field
T
- tab(String, Consumer) - Method in interface io.prismmc.prism.dashboard.View.Tabs
- table(Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
A table.
- tabs(Consumer) - Method in interface io.prismmc.prism.dashboard.View
-
Tabs, each with its own blocks; the dashboard remembers the one open.
- text(String) - Method in interface io.prismmc.prism.dashboard.View.Row
- text(String) - Method in interface io.prismmc.prism.dashboard.View
-
A paragraph.
- text(String, Tone) - Method in interface io.prismmc.prism.dashboard.View.Row
- text(String, Tone) - Method in interface io.prismmc.prism.dashboard.View
-
A paragraph of a colour:
Tone.NEUTRALfor a quieter one. - text(String, String) - Method in interface io.prismmc.prism.dashboard.View.Form
- textarea(String, String) - Method in interface io.prismmc.prism.dashboard.View.Form
- time(long) - Method in interface io.prismmc.prism.dashboard.View.Row
- times(List) - Method in interface io.prismmc.prism.dashboard.View.Chart
- title(String) - Method in interface io.prismmc.prism.dashboard.Extension
-
The name in the sidebar; the plugin's name until set.
- title(String) - Method in interface io.prismmc.prism.dashboard.Page
-
The page's name, as its title and its tab; its id until set.
- title(String) - Method in interface io.prismmc.prism.dashboard.View
-
Replaces the page's title for this drawing: the name of what a detail page shows.
- title(String, String) - Method in interface io.prismmc.prism.dashboard.Extension
-
The name in one of the dashboard's languages,
enorfr. - title(String, String) - Method in interface io.prismmc.prism.dashboard.Page
-
The page's name in one of the dashboard's languages,
enorfr. - toggle(String, String) - Method in interface io.prismmc.prism.dashboard.View.Form
- tone(Tone) - Method in interface io.prismmc.prism.dashboard.View.Button
- tone(Tone) - Method in interface io.prismmc.prism.dashboard.View.Stat
- Tone - Enum Class in io.prismmc.prism.dashboard
-
The dashboard's colours, the same in both themes.
U
- unit(String) - Method in interface io.prismmc.prism.dashboard.View.Bars
- unit(String) - Method in interface io.prismmc.prism.dashboard.View.Chart
- unit(String) - Method in interface io.prismmc.prism.dashboard.View.Stat
- unregister() - Method in interface io.prismmc.prism.dashboard.Extension
-
Takes the extension out of the dashboard, until
Dashboard.extension(Plugin)is called again.
V
- value(Object) - Method in interface io.prismmc.prism.dashboard.View.Field
- valueOf(String) - Static method in enum class io.prismmc.prism.dashboard.Execution
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.prismmc.prism.dashboard.Tone
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.prismmc.prism.dashboard.Execution
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.prismmc.prism.dashboard.Tone
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Static method in class io.prismmc.prism.dashboard.Dashboard
-
The version of this API the server speaks, as
major.minor. - view(String) - Method in interface io.prismmc.prism.dashboard.Page
-
Makes the page the plugin's own web page: an HTML file of its assets (
Extension.assets(String)), shown in a frame that fills the page. - View - Interface in io.prismmc.prism.dashboard
-
What a page shows, top to bottom: the dashboard draws each block in its own style.
- View.Bars - Interface in io.prismmc.prism.dashboard
-
The bars of
View.bars(Consumer). - View.Button - Interface in io.prismmc.prism.dashboard
-
One button of
View.Buttons. - View.Buttons - Interface in io.prismmc.prism.dashboard
-
Buttons of
View.buttons(Consumer)andView.Row.buttons(Consumer). - View.Chart - Interface in io.prismmc.prism.dashboard
-
A chart of
View.chart(Consumer): lines over the same moments. - View.Facts - Interface in io.prismmc.prism.dashboard
-
The pairs of
View.facts(Consumer). - View.Field - Interface in io.prismmc.prism.dashboard
-
One field of a
View.Form. - View.Form - Interface in io.prismmc.prism.dashboard
-
The fields of
View.form(String, Consumer), in order. - View.Row - Interface in io.prismmc.prism.dashboard
-
A row of a
View.Table: one cell per call. - View.Stat - Interface in io.prismmc.prism.dashboard
-
One figure of
View.Stats. - View.Stats - Interface in io.prismmc.prism.dashboard
-
The figures of
View.stats(Consumer). - View.Table - Interface in io.prismmc.prism.dashboard
-
A table of
View.table(Consumer). - View.Tabs - Interface in io.prismmc.prism.dashboard
-
The tabs of
View.tabs(Consumer). - viewer() - Method in interface io.prismmc.prism.dashboard.ActionContext
- Viewer - Interface in io.prismmc.prism.dashboard
-
Who uses the dashboard, for a page drawn or an action run.
- viewers() - Method in interface io.prismmc.prism.dashboard.Extension
W
- WARN - Enum constant in enum class io.prismmc.prism.dashboard.Tone
-
Amber: worth a look.
- with(String, Object) - Method in interface io.prismmc.prism.dashboard.View.Button
-
A value sent with the action (
ActionContext.string(String)...), or a parameter of the page it opens (Viewer.param(String)).
All Classes and Interfaces|All Packages