Record Class Message.Bubble.Modern

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Bubble.Modern
Enclosing class:
Message.Bubble

public static record Message.Bubble.Modern(Boolean enable, Boolean hasShadow, Boolean seeThrough, Integer animationTime, Float scale, String background, BubbleModule.Billboard billboard) extends Record
Since:
1.7.1
  • Constructor Details

    • Modern

      public Modern(Boolean enable, Boolean hasShadow, Boolean seeThrough, Integer animationTime, Float scale, String background, BubbleModule.Billboard billboard)
      Creates an instance of a Modern record class.
      Parameters:
      enable - the value for the enable record component
      hasShadow - the value for the hasShadow record component
      seeThrough - the value for the seeThrough record component
      animationTime - the value for the animationTime record component
      scale - the value for the scale record component
      background - the value for the background record component
      billboard - the value for the billboard record component
  • Method Details

    • builder

      public static Message.Bubble.Modern.ModernBuilder builder()
    • toBuilder

    • withEnable

      public Message.Bubble.Modern withEnable(Boolean enable)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHasShadow

      public Message.Bubble.Modern withHasShadow(Boolean hasShadow)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSeeThrough

      public Message.Bubble.Modern withSeeThrough(Boolean seeThrough)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAnimationTime

      public Message.Bubble.Modern withAnimationTime(Integer animationTime)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withScale

      public Message.Bubble.Modern withScale(Float scale)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBackground

      public Message.Bubble.Modern withBackground(String background)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBillboard

      public Message.Bubble.Modern withBillboard(BubbleModule.Billboard billboard)
      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.
      Returns:
      the value of the enable record component
    • hasShadow

      public Boolean hasShadow()
      Returns the value of the hasShadow record component.
      Returns:
      the value of the hasShadow record component
    • seeThrough

      public Boolean seeThrough()
      Returns the value of the seeThrough record component.
      Returns:
      the value of the seeThrough record component
    • animationTime

      public Integer animationTime()
      Returns the value of the animationTime record component.
      Returns:
      the value of the animationTime record component
    • scale

      public Float scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • background

      public String background()
      Returns the value of the background record component.
      Returns:
      the value of the background record component
    • billboard

      public BubbleModule.Billboard billboard()
      Returns the value of the billboard record component.
      Returns:
      the value of the billboard record component