Class BaseNetConnectionAudience

java.lang.Object
com.xpdustry.distributor.common.audience.BaseNetConnectionAudience
All Implemented Interfaces:
com.xpdustry.distributor.api.audience.Audience
Direct Known Subclasses:
NetConnectionAudienceImpl, PlayerAudienceImpl

public class BaseNetConnectionAudience extends Object implements com.xpdustry.distributor.api.audience.Audience
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final mindustry.net.NetConnection
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseNetConnectionAudience(mindustry.net.NetConnection connection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    kick(com.xpdustry.distributor.api.component.Component reason, Duration duration, boolean log)
     
    void
    kick(mindustry.net.Packets.KickReason reason, Duration duration, boolean log)
     
    void
    openURI(URI uri)
     
    protected String
    render(com.xpdustry.distributor.api.component.Component component)
     
    void
    sendAnnouncement(com.xpdustry.distributor.api.component.Component component)
     
    void
    sendMessage(com.xpdustry.distributor.api.component.Component component)
     
    void
    sendMessage(com.xpdustry.distributor.api.component.Component component, com.xpdustry.distributor.api.component.Component unformatted, com.xpdustry.distributor.api.audience.Audience sender)
     
    void
    sendNotification(com.xpdustry.distributor.api.component.Component component, char icon)
     
    void
    sendWarning(com.xpdustry.distributor.api.component.Component component)
     
    void
    showHUDText(com.xpdustry.distributor.api.component.Component component)
     
    void
    showLabel(com.xpdustry.distributor.api.component.Component label, float x, float y, Duration duration)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.xpdustry.distributor.api.audience.Audience

    getAudiences, getMetadata, getPermissions, kick, kick, toStream
  • Field Details

    • connection

      protected final mindustry.net.NetConnection connection
  • Constructor Details

    • BaseNetConnectionAudience

      public BaseNetConnectionAudience(mindustry.net.NetConnection connection)
  • Method Details

    • sendMessage

      public void sendMessage(com.xpdustry.distributor.api.component.Component component)
      Specified by:
      sendMessage in interface com.xpdustry.distributor.api.audience.Audience
    • sendMessage

      public void sendMessage(com.xpdustry.distributor.api.component.Component component, com.xpdustry.distributor.api.component.Component unformatted, com.xpdustry.distributor.api.audience.Audience sender)
      Specified by:
      sendMessage in interface com.xpdustry.distributor.api.audience.Audience
    • sendWarning

      public void sendWarning(com.xpdustry.distributor.api.component.Component component)
      Specified by:
      sendWarning in interface com.xpdustry.distributor.api.audience.Audience
    • showHUDText

      public void showHUDText(com.xpdustry.distributor.api.component.Component component)
      Specified by:
      showHUDText in interface com.xpdustry.distributor.api.audience.Audience
    • hideHUDText

      public void hideHUDText()
      Specified by:
      hideHUDText in interface com.xpdustry.distributor.api.audience.Audience
    • sendNotification

      public void sendNotification(com.xpdustry.distributor.api.component.Component component, char icon)
      Specified by:
      sendNotification in interface com.xpdustry.distributor.api.audience.Audience
    • sendAnnouncement

      public void sendAnnouncement(com.xpdustry.distributor.api.component.Component component)
      Specified by:
      sendAnnouncement in interface com.xpdustry.distributor.api.audience.Audience
    • openURI

      public void openURI(URI uri)
      Specified by:
      openURI in interface com.xpdustry.distributor.api.audience.Audience
    • showLabel

      public void showLabel(com.xpdustry.distributor.api.component.Component label, float x, float y, Duration duration)
      Specified by:
      showLabel in interface com.xpdustry.distributor.api.audience.Audience
    • kick

      public void kick(com.xpdustry.distributor.api.component.Component reason, Duration duration, boolean log)
      Specified by:
      kick in interface com.xpdustry.distributor.api.audience.Audience
    • kick

      public void kick(mindustry.net.Packets.KickReason reason, Duration duration, boolean log)
      Specified by:
      kick in interface com.xpdustry.distributor.api.audience.Audience
    • render

      protected String render(com.xpdustry.distributor.api.component.Component component)