Record Class Localization.Command.Ban
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Ban
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
public static record Localization.Command.Ban(String nullPlayer, String nullTime, String lowerWeightGroup, String alreadyBanned, Localization.ReasonMap reasons, String server, String person, String connectionAttempt)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealreadyBannedrecord component.builder()Returns the value of theconnectionAttemptrecord component.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.withAlreadyBanned(String alreadyBanned) withConnectionAttempt(String connectionAttempt) withLowerWeightGroup(String lowerWeightGroup) withNullPlayer(String nullPlayer) withNullTime(String nullTime) withPerson(String person) withReasons(Localization.ReasonMap reasons) withServer(String server)
-
Constructor Details
-
Ban
public Ban(String nullPlayer, String nullTime, String lowerWeightGroup, String alreadyBanned, Localization.ReasonMap reasons, String server, String person, String connectionAttempt) Creates an instance of aBanrecord class.- Parameters:
nullPlayer- the value for thenullPlayerrecord componentnullTime- the value for thenullTimerecord componentlowerWeightGroup- the value for thelowerWeightGrouprecord componentalreadyBanned- the value for thealreadyBannedrecord componentreasons- the value for thereasonsrecord componentserver- the value for theserverrecord componentperson- the value for thepersonrecord componentconnectionAttempt- the value for theconnectionAttemptrecord 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).
-
withAlreadyBanned
- 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).
-
withConnectionAttempt
- 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
-
alreadyBanned
Returns the value of thealreadyBannedrecord component.- Returns:
- the value of the
alreadyBannedrecord 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
-
connectionAttempt
Returns the value of theconnectionAttemptrecord component.- Returns:
- the value of the
connectionAttemptrecord component
-