模块 mxlib.api

接口 TitleAPI


  • public interface TitleAPI
    • 方法详细资料

      • sendPacket

        void sendPacket​(@NotNull
                        @NotNull Player player,
                        @NotNull
                        @NotNull Object packet)
      • sendTitle

        void sendTitle​(@NotNull
                       @NotNull Player player,
                       @Nullable
                       @Nullable String title,
                       @Nullable
                       @Nullable String subtitle,
                       int fadeIn,
                       int stay,
                       int fadeOut,
                       @NotNull
                       @NotNull PacketFormatter formatter)
      • setTabTitle

        void setTabTitle​(@NotNull
                         @NotNull Player player,
                         @NotNull
                         @NotNull String header,
                         @NotNull
                         @NotNull String footer,
                         @NotNull
                         @NotNull PacketFormatter formatter)
      • sendActionBar

        void sendActionBar​(@NotNull
                           @NotNull Player player,
                           @NotNull
                           @NotNull String action,
                           @NotNull
                           @NotNull PacketFormatter formatter)