Class RadioChannel

java.lang.Object
com.codinglitch.simpleradio.radio.RadioChannel
All Implemented Interfaces:
Supplier<short[]>

public class RadioChannel extends Object implements Supplier<short[]>
  • Field Details

    • owner

      public UUID owner
    • location

      public WorldlyPosition location
    • audioChannel

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

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

      public boolean isValid
  • Constructor Details

    • RadioChannel

      public RadioChannel(net.minecraft.world.entity.player.Player owner, Frequency frequency)
    • RadioChannel

      public RadioChannel(UUID owner, Frequency frequency)
  • Method Details

    • get

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

      public short[] generatePacket()
    • updateLocation

      public void updateLocation(WorldlyPosition location)
    • serverTick

      public void serverTick(int tickCount)
    • transmit

      public void transmit(RadioSource source, Frequency frequency)
    • validate

      public boolean validate()
    • invalidate

      public void invalidate()
    • getDecoder

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