Interface Receiving

All Superinterfaces:
Frequencing
All Known Implementing Classes:
RadioBlockEntity, RadioItem, SpeakerBlockEntity, SpeakerItem, TransceiverItem, WalkieTalkieItem

public interface Receiving extends Frequencing
  • Method Details

    • validateReceiver

      static boolean validateReceiver(WorldlyPosition position, @Nullable @Nullable Frequency frequency)
    • validateReceiver

      static boolean validateReceiver(UUID uuid, @Nullable @Nullable Frequency frequency)
    • validateReceiver

      static boolean validateReceiver(de.maxhenkel.voicechat.api.VoicechatConnection connection, @Nullable @Nullable Frequency frequency)
    • validateReceiver

      static boolean validateReceiver(net.minecraft.server.level.ServerPlayer player, @Nullable @Nullable Frequency frequency)
    • startReceiving

      default RadioChannel startReceiving(String frequencyName, Frequency.Modulation modulation, UUID owner)
      Start receiving in a certain frequency.
      Parameters:
      frequencyName - the frequency to listen to
      modulation - the modulation type of the frequency
      owner - the UUID that will listen
      Returns:
      The channel created from the listener.
    • stopReceiving

      default void stopReceiving(String frequencyName, Frequency.Modulation modulation, UUID owner)
      Stop listening in a certain frequency
      Parameters:
      frequencyName - the frequency to stop listening to
      modulation - the modulation type of the frequency
      owner - the UUID to remove