Record Class Permission.Message.Format
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Permission.Message.Format
- All Implemented Interfaces:
PermissionSetting
- Enclosing class:
Permission.Message
public static record Permission.Message.Format(String name, Permission.Type type, Permission.PermissionEntry legacyColors, Map<AdventureTag, Permission.PermissionEntry> adventureTags, Permission.Message.Format.Animation animation, Permission.Message.Format.Condition condition, Permission.Message.Format.Fading fading, Permission.Message.Format.FColor fcolor, Permission.Message.Format.Fixation fixation, Permission.Message.Format.Mention mention, Permission.Message.Format.Moderation moderation, Permission.Message.Format.Names names, Permission.Message.Format.Object object, Permission.Message.Format.Padding padding, Permission.Message.Format.QuestionAnswer questionAnswer, Permission.Message.Format.Replacement replacement, Permission.Message.Format.Translate translate, Permission.Message.Format.World world)
extends Record
implements PermissionSetting
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic classstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionFormat(String name, Permission.Type type, Permission.PermissionEntry legacyColors, Map<AdventureTag, Permission.PermissionEntry> adventureTags, Permission.Message.Format.Animation animation, Permission.Message.Format.Condition condition, Permission.Message.Format.Fading fading, Permission.Message.Format.FColor fcolor, Permission.Message.Format.Fixation fixation, Permission.Message.Format.Mention mention, Permission.Message.Format.Moderation moderation, Permission.Message.Format.Names names, Permission.Message.Format.Object object, Permission.Message.Format.Padding padding, Permission.Message.Format.QuestionAnswer questionAnswer, Permission.Message.Format.Replacement replacement, Permission.Message.Format.Translate translate, Permission.Message.Format.World world) Creates an instance of aFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadventureTagsrecord component.Returns the value of theanimationrecord component.builder()Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.fading()Returns the value of thefadingrecord component.fcolor()Returns the value of thefcolorrecord component.fixation()Returns the value of thefixationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelegacyColorsrecord component.mention()Returns the value of thementionrecord component.Returns the value of themoderationrecord component.name()Returns the value of thenamerecord component.names()Returns the value of thenamesrecord component.object()Returns the value of theobjectrecord component.padding()Returns the value of thepaddingrecord component.Returns the value of thequestionAnswerrecord component.Returns the value of thereplacementrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslaterecord component.type()Returns the value of thetyperecord component.withAdventureTags(Map<AdventureTag, Permission.PermissionEntry> adventureTags) withAnimation(Permission.Message.Format.Animation animation) withCondition(Permission.Message.Format.Condition condition) withLegacyColors(Permission.PermissionEntry legacyColors) withModeration(Permission.Message.Format.Moderation moderation) withQuestionAnswer(Permission.Message.Format.QuestionAnswer questionAnswer) withReplacement(Permission.Message.Format.Replacement replacement) withTranslate(Permission.Message.Format.Translate translate) withType(Permission.Type type) world()Returns the value of theworldrecord component.
-
Constructor Details
-
Format
public Format(String name, Permission.Type type, Permission.PermissionEntry legacyColors, Map<AdventureTag, Permission.PermissionEntry> adventureTags, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/animation") Permission.Message.Format.Animation animation, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/condition") Permission.Message.Format.Condition condition, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fading") Permission.Message.Format.Fading fading, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fcolor") Permission.Message.Format.FColor fcolor, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fixation") Permission.Message.Format.Fixation fixation, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/mention") Permission.Message.Format.Mention mention, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation") Permission.Message.Format.Moderation moderation, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/names") Permission.Message.Format.Names names, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/object") Permission.Message.Format.Object object, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/padding") Permission.Message.Format.Padding padding, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/questionanswer") Permission.Message.Format.QuestionAnswer questionAnswer, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/replacement") Permission.Message.Format.Replacement replacement, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/translate") Permission.Message.Format.Translate translate, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/world") Permission.Message.Format.World world) Creates an instance of aFormatrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentlegacyColors- the value for thelegacyColorsrecord componentadventureTags- the value for theadventureTagsrecord componentanimation- the value for theanimationrecord componentcondition- the value for theconditionrecord componentfading- the value for thefadingrecord componentfcolor- the value for thefcolorrecord componentfixation- the value for thefixationrecord componentmention- the value for thementionrecord componentmoderation- the value for themoderationrecord componentnames- the value for thenamesrecord componentobject- the value for theobjectrecord componentpadding- the value for thepaddingrecord componentquestionAnswer- the value for thequestionAnswerrecord componentreplacement- the value for thereplacementrecord componenttranslate- the value for thetranslaterecord componentworld- the value for theworldrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLegacyColors
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAdventureTags
public Permission.Message.Format withAdventureTags(Map<AdventureTag, Permission.PermissionEntry> adventureTags) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAnimation
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCondition
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFading
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFcolor
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFixation
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMention
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withModeration
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNames
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withObject
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPadding
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withQuestionAnswer
public Permission.Message.Format withQuestionAnswer(Permission.Message.Format.QuestionAnswer questionAnswer) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReplacement
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTranslate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWorld
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfacePermissionSetting- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfacePermissionSetting- Returns:
- the value of the
typerecord component - See Also:
-
legacyColors
Returns the value of thelegacyColorsrecord component.- Returns:
- the value of the
legacyColorsrecord component
-
adventureTags
Returns the value of theadventureTagsrecord component.- Returns:
- the value of the
adventureTagsrecord component
-
animation
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/animation") public Permission.Message.Format.Animation animation()Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-
condition
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/condition") public Permission.Message.Format.Condition condition()Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
fading
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fading") public Permission.Message.Format.Fading fading()Returns the value of thefadingrecord component.- Returns:
- the value of the
fadingrecord component
-
fcolor
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fcolor") public Permission.Message.Format.FColor fcolor()Returns the value of thefcolorrecord component.- Returns:
- the value of the
fcolorrecord component
-
fixation
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fixation") public Permission.Message.Format.Fixation fixation()Returns the value of thefixationrecord component.- Returns:
- the value of the
fixationrecord component
-
mention
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/mention") public Permission.Message.Format.Mention mention()Returns the value of thementionrecord component.- Returns:
- the value of the
mentionrecord component
-
moderation
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation") public Permission.Message.Format.Moderation moderation()Returns the value of themoderationrecord component.- Returns:
- the value of the
moderationrecord component
-
names
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/names") public Permission.Message.Format.Names names()Returns the value of thenamesrecord component.- Returns:
- the value of the
namesrecord component
-
object
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/object") public Permission.Message.Format.Object object()Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
padding
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/padding") public Permission.Message.Format.Padding padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
questionAnswer
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/questionanswer") public Permission.Message.Format.QuestionAnswer questionAnswer()Returns the value of thequestionAnswerrecord component.- Returns:
- the value of the
questionAnswerrecord component
-
replacement
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/replacement") public Permission.Message.Format.Replacement replacement()Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-
translate
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/translate") public Permission.Message.Format.Translate translate()Returns the value of thetranslaterecord component.- Returns:
- the value of the
translaterecord component
-
world
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/world") public Permission.Message.Format.World world()Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-