Record Class Messages
java.lang.Object
java.lang.Record
dev.despical.mazeengine.config.Messages
Loads and renders the plugin's configured MiniMessage templates.
Loading checks message value types, validates MiniMessage syntax, requires the essential keys, and fills additional keys from bundled defaults. The published template map is copied so later YAML edits do not alter the active messages until a successful reload.
Rendering substitutes plain arguments as unparsed placeholders and accepts explicit Adventure components for rich actions. Named colors are normalized to the shared palette, and panel-capable messages delegate contextual button selection and layout to MessagePanels.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Componentfinal booleanIndicates whether some other object is "equal to" this one.net.kyori.adventure.text.Componentfinal inthashCode()Returns a hash code value for this object.static Messagesnet.kyori.adventure.text.ComponentvoidvoidsendRich(org.bukkit.command.CommandSender sender, String key, Map<String, net.kyori.adventure.text.Component> components, String... args) final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
Messages
-
-
Method Details
-
load
-
format
-
rich
-
button
-
sendRich
-
send
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
values
-