Record Class Localization.Command.Warn
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Warn
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
public static record Localization.Command.Warn(String nullPlayer, String nullTime, String lowerWeightGroup, Localization.ReasonMap reasons, String server, String person)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelowerWeightGrouprecord component.Returns the value of thenullPlayerrecord component.nullTime()Returns the value of thenullTimerecord component.person()Returns the value of thepersonrecord component.reasons()Returns the value of thereasonsrecord component.server()Returns the value of theserverrecord component.final StringtoString()Returns a string representation of this record class.withLowerWeightGroup(String lowerWeightGroup) withNullPlayer(String nullPlayer) withNullTime(String nullTime) withPerson(String person) withReasons(Localization.ReasonMap reasons) withServer(String server)
-
Constructor Details
-
Warn
public Warn(String nullPlayer, String nullTime, String lowerWeightGroup, Localization.ReasonMap reasons, String server, String person) Creates an instance of aWarnrecord class.- Parameters:
nullPlayer- the value for thenullPlayerrecord componentnullTime- the value for thenullTimerecord componentlowerWeightGroup- the value for thelowerWeightGrouprecord componentreasons- the value for thereasonsrecord componentserver- the value for theserverrecord componentperson- the value for thepersonrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withNullPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNullTime
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLowerWeightGroup
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReasons
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withServer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPerson
- 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). -
nullPlayer
Returns the value of thenullPlayerrecord component.- Returns:
- the value of the
nullPlayerrecord component
-
nullTime
Returns the value of thenullTimerecord component.- Returns:
- the value of the
nullTimerecord component
-
lowerWeightGroup
Returns the value of thelowerWeightGrouprecord component.- Returns:
- the value of the
lowerWeightGrouprecord component
-
reasons
Returns the value of thereasonsrecord component.- Returns:
- the value of the
reasonsrecord component
-
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
person
Returns the value of thepersonrecord component.- Returns:
- the value of the
personrecord component
-