Record Class Config.Internal

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Config.Internal
All Implemented Interfaces:
EnableSetting
Enclosing class:
Config

public static record Config.Internal(Boolean enable, Boolean alwaysSendSilentPacket, Boolean useVanillaMessageSender, Boolean usePaperMessageSender, Boolean usePacketLoginListener, Boolean unregisterCommandOnReload, Set<String> vanillaCommandsToRemove) extends Record implements EnableSetting
Since:
1.7.1
  • Constructor Details

    • Internal

      public Internal(Boolean enable, Boolean alwaysSendSilentPacket, Boolean useVanillaMessageSender, @Deprecated Boolean usePaperMessageSender, Boolean usePacketLoginListener, Boolean unregisterCommandOnReload, Set<String> vanillaCommandsToRemove)
      Creates an instance of a Internal record class.
      Parameters:
      enable - the value for the enable record component
      alwaysSendSilentPacket - the value for the alwaysSendSilentPacket record component
      useVanillaMessageSender - the value for the useVanillaMessageSender record component
      usePaperMessageSender - the value for the usePaperMessageSender record component
      usePacketLoginListener - the value for the usePacketLoginListener record component
      unregisterCommandOnReload - the value for the unregisterCommandOnReload record component
      vanillaCommandsToRemove - the value for the vanillaCommandsToRemove record component
  • Method Details

    • builder

      public static Config.Internal.InternalBuilder builder()
    • toBuilder

      public Config.Internal.InternalBuilder toBuilder()
    • withEnable

      public Config.Internal withEnable(Boolean enable)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAlwaysSendSilentPacket

      public Config.Internal withAlwaysSendSilentPacket(Boolean alwaysSendSilentPacket)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUseVanillaMessageSender

      public Config.Internal withUseVanillaMessageSender(Boolean useVanillaMessageSender)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUsePaperMessageSender

      @Deprecated public Config.Internal withUsePaperMessageSender(Boolean usePaperMessageSender)
      Deprecated.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUsePacketLoginListener

      public Config.Internal withUsePacketLoginListener(Boolean usePacketLoginListener)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUnregisterCommandOnReload

      public Config.Internal withUnregisterCommandOnReload(Boolean unregisterCommandOnReload)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withVanillaCommandsToRemove

      public Config.Internal withVanillaCommandsToRemove(Set<String> vanillaCommandsToRemove)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enable

      public Boolean enable()
      Returns the value of the enable record component.
      Specified by:
      enable in interface EnableSetting
      Returns:
      the value of the enable record component
    • alwaysSendSilentPacket

      public Boolean alwaysSendSilentPacket()
      Returns the value of the alwaysSendSilentPacket record component.
      Returns:
      the value of the alwaysSendSilentPacket record component
    • useVanillaMessageSender

      public Boolean useVanillaMessageSender()
      Returns the value of the useVanillaMessageSender record component.
      Returns:
      the value of the useVanillaMessageSender record component
    • usePaperMessageSender

      @Deprecated public Boolean usePaperMessageSender()
      Deprecated.
      Returns the value of the usePaperMessageSender record component.
      Returns:
      the value of the usePaperMessageSender record component
    • usePacketLoginListener

      public Boolean usePacketLoginListener()
      Returns the value of the usePacketLoginListener record component.
      Returns:
      the value of the usePacketLoginListener record component
    • unregisterCommandOnReload

      public Boolean unregisterCommandOnReload()
      Returns the value of the unregisterCommandOnReload record component.
      Returns:
      the value of the unregisterCommandOnReload record component
    • vanillaCommandsToRemove

      public Set<String> vanillaCommandsToRemove()
      Returns the value of the vanillaCommandsToRemove record component.
      Returns:
      the value of the vanillaCommandsToRemove record component