Class WrapperPlayServerTitle

java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayServerTitle>
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerTitle

public class WrapperPlayServerTitle extends PacketWrapper<WrapperPlayServerTitle>
  • Field Details

    • HANDLE_JSON

      @Deprecated public static boolean HANDLE_JSON
      Deprecated.
  • Constructor Details

    • WrapperPlayServerTitle

      public WrapperPlayServerTitle(PacketSendEvent event)
    • WrapperPlayServerTitle

      public WrapperPlayServerTitle(WrapperPlayServerTitle.TitleAction action, @Nullable @Nullable net.kyori.adventure.text.Component title, @Nullable @Nullable net.kyori.adventure.text.Component subtitle, @Nullable @Nullable net.kyori.adventure.text.Component actionBar, int fadeInTicks, int stayTicks, int fadeOutTicks)
    • WrapperPlayServerTitle

      @Deprecated public WrapperPlayServerTitle(WrapperPlayServerTitle.TitleAction action, @Nullable @Nullable String titleJson, @Nullable @Nullable String subtitleJson, @Nullable @Nullable String actionBarJson, int fadeInTicks, int stayTicks, int fadeOutTicks)
      Deprecated.
  • Method Details

    • read

      public void read()
      Overrides:
      read in class PacketWrapper<WrapperPlayServerTitle>
    • copy

      public void copy(WrapperPlayServerTitle wrapper)
      Overrides:
      copy in class PacketWrapper<WrapperPlayServerTitle>
    • write

      public void write()
      Overrides:
      write in class PacketWrapper<WrapperPlayServerTitle>
    • getAction

    • setAction

      public void setAction(WrapperPlayServerTitle.TitleAction action)
    • getTitle

      @Nullable public @Nullable net.kyori.adventure.text.Component getTitle()
    • setTitle

      public void setTitle(@Nullable @Nullable net.kyori.adventure.text.Component title)
    • getTitleJson

      @Deprecated @Nullable public @Nullable String getTitleJson()
      Deprecated.
    • setTitleJson

      @Deprecated public void setTitleJson(@Nullable @Nullable String titleJson)
      Deprecated.
    • getSubtitle

      @Nullable public @Nullable net.kyori.adventure.text.Component getSubtitle()
    • setSubtitle

      public void setSubtitle(@Nullable @Nullable net.kyori.adventure.text.Component subtitle)
    • getSubtitleJson

      @Deprecated @Nullable public @Nullable String getSubtitleJson()
      Deprecated.
    • setSubtitleJson

      @Deprecated public void setSubtitleJson(@Nullable @Nullable String subtitleJson)
      Deprecated.
    • getActionBar

      @Nullable public @Nullable net.kyori.adventure.text.Component getActionBar()
    • setActionBar

      public void setActionBar(@Nullable @Nullable net.kyori.adventure.text.Component actionBar)
    • getActionBarJson

      @Deprecated @Nullable public @Nullable String getActionBarJson()
      Deprecated.
    • setActionBarJson

      @Deprecated public void setActionBarJson(@Nullable @Nullable String actionBarJson)
      Deprecated.
    • getFadeInTicks

      public int getFadeInTicks()
    • setFadeInTicks

      public void setFadeInTicks(int fadeInTicks)
    • getStayTicks

      public int getStayTicks()
    • setStayTicks

      public void setStayTicks(int stayTicks)
    • getFadeOutTicks

      public int getFadeOutTicks()
    • setFadeOutTicks

      public void setFadeOutTicks(int fadeOutTicks)