Class TitleMessage

java.lang.Object
net.glowstone.net.message.play.game.TitleMessage
All Implemented Interfaces:
com.flowpowered.network.Message

public final class TitleMessage extends Object implements com.flowpowered.network.Message
Documented at http://wiki.vg/Protocol#Title
  • Constructor Details

  • Method Details

    • fromTitle

      public static TitleMessage[] fromTitle(com.destroystokyo.paper.Title title)
      Converts a Title to 3 instances of TitleMessage.
      Parameters:
      title - the title to convert
      Returns:
      3 messages: the first sets the title, the second sets the subtitle, and the third sets the fade/stay/fade durations
    • getAction

      public TitleMessage.Action getAction()
    • getText

      public TextMessage getText()
    • getFadeIn

      public int getFadeIn()
    • getStay

      public int getStay()
    • getFadeOut

      public int getFadeOut()
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface com.flowpowered.network.Message
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.flowpowered.network.Message
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface com.flowpowered.network.Message
      Overrides:
      toString in class Object