Class ServerPlayerAudience

java.lang.Object
net.kyori.adventure.platform.fabric.impl.server.ServerPlayerAudience
All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.pointer.Pointered

public final class ServerPlayerAudience extends Object implements net.kyori.adventure.audience.Audience
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServerPlayerAudience(net.minecraft.server.level.ServerPlayer player, FabricServerAudiencesImpl controller)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    deleteMessage(@NotNull net.kyori.adventure.chat.SignedMessage.Signature signature)
     
    void
    hideBossBar(@NotNull net.kyori.adventure.bossbar.BossBar bar)
     
    void
    openBook(@NotNull net.kyori.adventure.inventory.Book book)
     
    void
    playSound(@NotNull net.kyori.adventure.sound.Sound sound)
     
    void
    playSound(@NotNull net.kyori.adventure.sound.Sound sound, double x, double y, double z)
     
    void
    playSound(@NotNull net.kyori.adventure.sound.Sound sound, @NotNull net.kyori.adventure.sound.Sound.Emitter emitter)
     
    @NotNull net.kyori.adventure.pointer.Pointers
     
    void
     
    void
    sendActionBar(@NotNull net.kyori.adventure.text.Component message)
     
    void
    sendMessage(@NotNull net.kyori.adventure.chat.SignedMessage signedMessage, @NotNull net.kyori.adventure.chat.ChatType.Bound boundChatType)
     
    void
    sendMessage(@NotNull net.kyori.adventure.text.Component message)
     
    void
    sendMessage(@NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.chat.ChatType.Bound boundChatType)
     
    void
    sendMessage(net.kyori.adventure.identity.Identity source, net.kyori.adventure.text.Component text, net.kyori.adventure.audience.MessageType type)
    Deprecated.
    void
    sendPlayerListFooter(@NotNull net.kyori.adventure.text.Component footer)
     
    void
    sendPlayerListHeader(@NotNull net.kyori.adventure.text.Component header)
     
    void
    sendPlayerListHeaderAndFooter(@NotNull net.kyori.adventure.text.Component header, @NotNull net.kyori.adventure.text.Component footer)
     
    <T> void
    sendTitlePart(@NotNull net.kyori.adventure.title.TitlePart<T> part, T value)
     
    void
    showBossBar(@NotNull net.kyori.adventure.bossbar.BossBar bar)
     
    void
    showTitle(@NotNull net.kyori.adventure.title.Title title)
     
    void
    stopSound(@NotNull net.kyori.adventure.sound.SoundStop stop)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.audience.Audience

    deleteMessage, filterAudience, forEachAudience, openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, stopSound

    Methods inherited from interface net.kyori.adventure.pointer.Pointered

    get, getOrDefault, getOrDefaultFrom
  • Constructor Details

    • ServerPlayerAudience

      public ServerPlayerAudience(net.minecraft.server.level.ServerPlayer player, FabricServerAudiencesImpl controller)
  • Method Details

    • sendMessage

      public void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message)
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.Audience
    • sendMessage

      @Deprecated public void sendMessage(net.kyori.adventure.identity.Identity source, net.kyori.adventure.text.Component text, net.kyori.adventure.audience.MessageType type)
      Deprecated.
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.Audience
    • sendMessage

      public void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.chat.ChatType.Bound boundChatType)
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.Audience
    • sendMessage

      public void sendMessage(@NotNull @NotNull net.kyori.adventure.chat.SignedMessage signedMessage, @NotNull net.kyori.adventure.chat.ChatType.Bound boundChatType)
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.Audience
    • deleteMessage

      public void deleteMessage(@NotNull net.kyori.adventure.chat.SignedMessage.Signature signature)
      Specified by:
      deleteMessage in interface net.kyori.adventure.audience.Audience
    • sendActionBar

      public void sendActionBar(@NotNull @NotNull net.kyori.adventure.text.Component message)
      Specified by:
      sendActionBar in interface net.kyori.adventure.audience.Audience
    • showBossBar

      public void showBossBar(@NotNull @NotNull net.kyori.adventure.bossbar.BossBar bar)
      Specified by:
      showBossBar in interface net.kyori.adventure.audience.Audience
    • hideBossBar

      public void hideBossBar(@NotNull @NotNull net.kyori.adventure.bossbar.BossBar bar)
      Specified by:
      hideBossBar in interface net.kyori.adventure.audience.Audience
    • playSound

      public void playSound(@NotNull @NotNull net.kyori.adventure.sound.Sound sound)
      Specified by:
      playSound in interface net.kyori.adventure.audience.Audience
    • playSound

      public void playSound(@NotNull @NotNull net.kyori.adventure.sound.Sound sound, double x, double y, double z)
      Specified by:
      playSound in interface net.kyori.adventure.audience.Audience
    • playSound

      public void playSound(@NotNull @NotNull net.kyori.adventure.sound.Sound sound, @NotNull net.kyori.adventure.sound.Sound.Emitter emitter)
      Specified by:
      playSound in interface net.kyori.adventure.audience.Audience
    • stopSound

      public void stopSound(@NotNull @NotNull net.kyori.adventure.sound.SoundStop stop)
      Specified by:
      stopSound in interface net.kyori.adventure.audience.Audience
    • openBook

      public void openBook(@NotNull @NotNull net.kyori.adventure.inventory.Book book)
      Specified by:
      openBook in interface net.kyori.adventure.audience.Audience
    • showTitle

      public void showTitle(@NotNull @NotNull net.kyori.adventure.title.Title title)
      Specified by:
      showTitle in interface net.kyori.adventure.audience.Audience
    • sendTitlePart

      public <T> void sendTitlePart(@NotNull @NotNull net.kyori.adventure.title.TitlePart<T> part, @NotNull T value)
      Specified by:
      sendTitlePart in interface net.kyori.adventure.audience.Audience
    • clearTitle

      public void clearTitle()
      Specified by:
      clearTitle in interface net.kyori.adventure.audience.Audience
    • resetTitle

      public void resetTitle()
      Specified by:
      resetTitle in interface net.kyori.adventure.audience.Audience
    • sendPlayerListHeader

      public void sendPlayerListHeader(@NotNull @NotNull net.kyori.adventure.text.Component header)
      Specified by:
      sendPlayerListHeader in interface net.kyori.adventure.audience.Audience
    • sendPlayerListFooter

      public void sendPlayerListFooter(@NotNull @NotNull net.kyori.adventure.text.Component footer)
      Specified by:
      sendPlayerListFooter in interface net.kyori.adventure.audience.Audience
    • sendPlayerListHeaderAndFooter

      public void sendPlayerListHeaderAndFooter(@NotNull @NotNull net.kyori.adventure.text.Component header, @NotNull @NotNull net.kyori.adventure.text.Component footer)
      Specified by:
      sendPlayerListHeaderAndFooter in interface net.kyori.adventure.audience.Audience
    • pointers

      @NotNull public @NotNull net.kyori.adventure.pointer.Pointers pointers()
      Specified by:
      pointers in interface net.kyori.adventure.pointer.Pointered