Record Class MessageCtx
java.lang.Object
java.lang.Record
com.winterhavenmc.library.messagebuilder.core.context.MessageCtx
public record MessageCtx(org.bukkit.plugin.Plugin plugin, ValidMessage validMessage, ValidMessageKey validMessageKey, Pipeline messagePipeline)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMessageCtx(org.bukkit.plugin.Plugin plugin, ValidMessage validMessage, ValidMessageKey validMessageKey, Pipeline messagePipeline) Creates an instance of aMessageCtxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessagePipelinerecord component.org.bukkit.plugin.Pluginplugin()Returns the value of thepluginrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidMessagerecord component.Returns the value of thevalidMessageKeyrecord component.
-
Constructor Details
-
MessageCtx
public MessageCtx(org.bukkit.plugin.Plugin plugin, ValidMessage validMessage, ValidMessageKey validMessageKey, Pipeline messagePipeline) Creates an instance of aMessageCtxrecord class.- Parameters:
plugin- the value for thepluginrecord componentvalidMessage- the value for thevalidMessagerecord componentvalidMessageKey- the value for thevalidMessageKeyrecord componentmessagePipeline- the value for themessagePipelinerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
plugin
public org.bukkit.plugin.Plugin plugin()Returns the value of thepluginrecord component.- Returns:
- the value of the
pluginrecord component
-
validMessage
Returns the value of thevalidMessagerecord component.- Returns:
- the value of the
validMessagerecord component
-
validMessageKey
Returns the value of thevalidMessageKeyrecord component.- Returns:
- the value of the
validMessageKeyrecord component
-
messagePipeline
Returns the value of themessagePipelinerecord component.- Returns:
- the value of the
messagePipelinerecord component
-