Record Class Config.Internal
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Config.Internal
- All Implemented Interfaces:
EnableSetting
- Enclosing class:
Config
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealwaysSendSilentPacketrecord component.builder()enable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theunregisterCommandOnReloadrecord component.Returns the value of theusePacketLoginListenerrecord component.Returns the value of theusePaperMessageSenderrecord component.Returns the value of thevanillaCommandsToRemoverecord component.withAlwaysSendSilentPacket(Boolean alwaysSendSilentPacket) withEnable(Boolean enable) withUnregisterCommandOnReload(Boolean unregisterCommandOnReload) withUsePacketLoginListener(Boolean usePacketLoginListener) withUsePaperMessageSender(Boolean usePaperMessageSender) withVanillaCommandsToRemove(Set<String> vanillaCommandsToRemove)
-
Constructor Details
-
Internal
public Internal(Boolean enable, Boolean alwaysSendSilentPacket, Boolean usePaperMessageSender, Boolean usePacketLoginListener, Boolean unregisterCommandOnReload, Set<String> vanillaCommandsToRemove) Creates an instance of aInternalrecord class.- Parameters:
enable- the value for theenablerecord componentalwaysSendSilentPacket- the value for thealwaysSendSilentPacketrecord componentusePaperMessageSender- the value for theusePaperMessageSenderrecord componentusePacketLoginListener- the value for theusePacketLoginListenerrecord componentunregisterCommandOnReload- the value for theunregisterCommandOnReloadrecord componentvanillaCommandsToRemove- the value for thevanillaCommandsToRemoverecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAlwaysSendSilentPacket
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUsePaperMessageSender
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUsePacketLoginListener
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUnregisterCommandOnReload
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVanillaCommandsToRemove
- 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). -
enable
Returns the value of theenablerecord component.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
alwaysSendSilentPacket
Returns the value of thealwaysSendSilentPacketrecord component.- Returns:
- the value of the
alwaysSendSilentPacketrecord component
-
usePaperMessageSender
Returns the value of theusePaperMessageSenderrecord component.- Returns:
- the value of the
usePaperMessageSenderrecord component
-
usePacketLoginListener
Returns the value of theusePacketLoginListenerrecord component.- Returns:
- the value of the
usePacketLoginListenerrecord component
-
unregisterCommandOnReload
Returns the value of theunregisterCommandOnReloadrecord component.- Returns:
- the value of the
unregisterCommandOnReloadrecord component
-
vanillaCommandsToRemove
-