Class RadioSpeaker

java.lang.Object
com.codinglitch.simpleradio.radio.RadioRouter
com.codinglitch.simpleradio.radio.RadioSpeaker
All Implemented Interfaces:
Socket, Supplier<short[]>

public class RadioSpeaker extends RadioRouter implements Supplier<short[]>
A type of RadioRouter that accepts RadioSources and emits them in-world.
Often serves as the end of the audio pipeline.
Does not route further.
  • Field Details

    • audioChannel

      public de.maxhenkel.voicechat.api.audiochannel.LocationalAudioChannel audioChannel
    • audioPlayer

      public de.maxhenkel.voicechat.api.audiochannel.AudioPlayer audioPlayer
    • category

      public String category
    • range

      public float range
    • speakingTime

      public int speakingTime
  • Constructor Details

    • RadioSpeaker

      protected RadioSpeaker(UUID id)
    • RadioSpeaker

      protected RadioSpeaker()
    • RadioSpeaker

      public RadioSpeaker(net.minecraft.world.entity.Entity owner)
    • RadioSpeaker

      public RadioSpeaker(net.minecraft.world.entity.Entity owner, UUID uuid)
    • RadioSpeaker

      public RadioSpeaker(WorldlyPosition location)
    • RadioSpeaker

      public RadioSpeaker(WorldlyPosition location, UUID uuid)
  • Method Details

    • setRange

      public void setRange(float range)
    • get

      public short[] get()
      Specified by:
      get in interface Supplier<short[]>
    • generatePacket

      public short[] generatePacket()
    • updateLocation

      public void updateLocation(WorldlyPosition location)
      Overrides:
      updateLocation in class RadioRouter
    • tick

      public void tick(int tickCount)
      Overrides:
      tick in class RadioRouter
    • accept

      public void accept(RadioSource source)
      Overrides:
      accept in class RadioRouter
    • speak

      public void speak(RadioSource source)
    • getDecoder

      public de.maxhenkel.voicechat.api.opus.OpusDecoder getDecoder(UUID sender)
    • invalidate

      public void invalidate()
      Overrides:
      invalidate in class RadioRouter