Class ChatPanels
java.lang.Object
dev.despical.pixelpainter.command.ChatPanels
Renders help, source lists, material estimates and undo history as chat panels.
Panels share the ChatLayout separator, centered headings, bullet rows
and page controls. Suggestions let players review a command before
it changes terrain; run-command controls only navigate pages. Hover descriptions
are wrapped for readability and dynamic values are rendered through
Messages.
Call on the server thread. Rendering reads current messages and permissions but performs no file I/O, terrain mutation or journal ownership changes.
-
Constructor Summary
ConstructorsConstructorDescriptionChatPanels(Supplier<Messages> messages, String version) Creates renderers that read the currently active message set on every call. -
Method Summary
Modifier and TypeMethodDescriptionvoidhelp(org.bukkit.command.CommandSender sender, List<CommandAction> actions) Renders permission-filtered commands, grouped, with suggestions and hover explanations.voidhistory(org.bukkit.command.CommandSender sender, List<PaintRecord> records, int page) Renders previously authorized records with undo-command suggestions.voidRenders source files as creation-command suggestions.voidRenders a palette's material names with navigation.voidShows dimensions, transparency counts and the eight most-used materials.
-
Constructor Details
-
ChatPanels
-
-
Method Details
-
help
Renders permission-filtered commands, grouped, with suggestions and hover explanations.- Parameters:
sender- command audienceactions- catalog of available commands
-
images
-
history
Renders previously authorized records with undo-command suggestions.- Parameters:
sender- command audiencerecords- accessible records supplied by the servicepage- one-based page
-
materials
public void materials(org.bukkit.command.CommandSender sender, String palette, List<String> names, int page) Renders a palette's material names with navigation.- Parameters:
sender- command audiencepalette- selected family used by navigation commandsnames- supported material namespage- one-based page
-
plan
-