Record Class Permission.Message.Scoreboard.Objective
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Permission.Message.Scoreboard.Objective
- All Implemented Interfaces:
PermissionSetting
- Enclosing class:
Permission.Message.Scoreboard
public static record Permission.Message.Scoreboard.Objective(String name, Permission.Type type, Permission.Message.Scoreboard.Objective.Belowname belowname, Permission.Message.Scoreboard.Objective.Tabname tabname)
extends Record
implements PermissionSetting
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionObjective(String name, Permission.Type type, Permission.Message.Scoreboard.Objective.Belowname belowname, Permission.Message.Scoreboard.Objective.Tabname tabname) Creates an instance of aObjectiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebelownamerecord component.builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.tabname()Returns the value of thetabnamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withType(Permission.Type type)
-
Constructor Details
-
Objective
public Objective(String name, Permission.Type type, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard/objective/belowname") Permission.Message.Scoreboard.Objective.Belowname belowname, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard/objective/tabname") Permission.Message.Scoreboard.Objective.Tabname tabname) Creates an instance of aObjectiverecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentbelowname- the value for thebelownamerecord componenttabname- the value for thetabnamerecord 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).
-
withBelowname
public Permission.Message.Scoreboard.Objective withBelowname(Permission.Message.Scoreboard.Objective.Belowname belowname) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTabname
public Permission.Message.Scoreboard.Objective withTabname(Permission.Message.Scoreboard.Objective.Tabname tabname) - 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:
-
belowname
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard/objective/belowname") public Permission.Message.Scoreboard.Objective.Belowname belowname()Returns the value of thebelownamerecord component.- Returns:
- the value of the
belownamerecord component
-
tabname
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard/objective/tabname") public Permission.Message.Scoreboard.Objective.Tabname tabname()Returns the value of thetabnamerecord component.- Returns:
- the value of the
tabnamerecord component
-