Class RadioListener

java.lang.Object
com.codinglitch.simpleradio.radio.RadioRouter
com.codinglitch.simpleradio.radio.RadioListener
All Implemented Interfaces:
Socket

public class RadioListener extends RadioRouter
A type of RadioRouter that accepts RadioSources.
Often serves as the beginning of the audio pipeline.
Does route further.
  • Field Details

    • range

      public float range
    • lastHeader

      public long lastHeader
    • compiledData

      public byte[] compiledData
  • Constructor Details

    • RadioListener

      protected RadioListener(UUID reference)
    • RadioListener

      protected RadioListener()
    • RadioListener

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

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

      public RadioListener(WorldlyPosition location)
    • RadioListener

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

    • setRange

      public void setRange(float range)
    • tryRouteHeader

      public void tryRouteHeader()
    • transformer

      public void transformer(UnaryOperator<RadioSource> transformer)
    • getDecoder

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

      public void onData(byte[] data)
    • onSource

      public void onSource(RadioSource source)
    • tick

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