Class RadioManager

java.lang.Object
com.codinglitch.simpleradio.radio.RadioManager
All Implemented Interfaces:
SimpleRadioApi

public class RadioManager extends Object implements SimpleRadioApi
  • Constructor Details

    • RadioManager

      public RadioManager()
  • Method Details

    • getInstance

      public static RadioManager getInstance()
    • putRouter

      public static <R extends RadioRouter> void putRouter(@Nullable @Nullable RouterContainer<R> container, R router)
    • pushRouter

      public static short pushRouter(RadioRouter router)
    • pushRouter

      public static short pushRouter(Map<Short,RadioRouter> map, RadioRouter router)
    • getIdentifier

      public static short getIdentifier(Predicate<RadioRouter> filter)
    • getRouters

      public static List<RadioRouter> getRouters()
    • removeRouter

      public static void removeRouter(RadioRouter router)
    • removeRouter

      public static void removeRouter(Predicate<RadioRouter> criteria)
    • removeRouter

      public static void removeRouter(short identifier)
    • removeRouter

      public static void removeRouter(UUID uuid)
    • removeRouter

      public static void removeRouter(net.minecraft.world.entity.Entity owner)
    • removeRouter

      public static void removeRouter(WorldlyPosition location)
    • getRouter

      public static RadioRouter getRouter(Predicate<RadioRouter> filter)
    • getRouter

      public static RadioRouter getRouter(short identifier)
    • getRouter

      public static RadioRouter getRouter(UUID reference, @Nullable @Nullable String type)
    • getRouter

      public static RadioRouter getRouter(UUID reference)
    • getRouter

      public static RadioRouter getRouter(net.minecraft.world.entity.Entity owner)
    • getRouter

      public static RadioRouter getRouter(WorldlyPosition location)
    • registerRouter

      public static void registerRouter(RadioRouter router)
    • getRouterSided

      public static RadioRouter getRouterSided(UUID reference, boolean isClient)
    • getRouterSided

      public static RadioRouter getRouterSided(UUID reference, @Nullable @Nullable String type, boolean isClient)
    • registerRouterSided

      public static void registerRouterSided(RadioRouter router, boolean isClient, @Nullable @Nullable Frequency frequency)
    • removeRouterSided

      public static void removeRouterSided(UUID uuid, boolean isClient)
    • removeRouterSided

      public static void removeRouterSided(RadioRouter router, boolean isClient)
    • getSpeakers

      public static List<RadioSpeaker> getSpeakers()
    • removeSpeaker

      public static void removeSpeaker(RadioSpeaker speaker)
    • removeSpeaker

      public static void removeSpeaker(Predicate<RadioSpeaker> criteria)
    • removeSpeaker

      public static void removeSpeaker(short identifier)
    • removeSpeaker

      public static void removeSpeaker(net.minecraft.world.entity.Entity owner)
    • removeSpeaker

      public static void removeSpeaker(WorldlyPosition location)
    • removeSpeaker

      public static void removeSpeaker(UUID id)
    • getSpeaker

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

      public static RadioSpeaker getSpeaker(WorldlyPosition location)
    • getSpeaker

      public static RadioSpeaker getSpeaker(UUID id)
    • getSpeaker

      public static RadioSpeaker getSpeaker(Predicate<RadioSpeaker> filter)
    • getOrCreateSpeaker

      public static RadioSpeaker getOrCreateSpeaker(net.minecraft.world.entity.Entity owner, @Nullable @Nullable UUID id)
    • getOrCreateSpeaker

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

      public static RadioSpeaker getOrCreateSpeaker(WorldlyPosition location, @Nullable @Nullable UUID id)
    • getOrCreateSpeaker

      public static RadioSpeaker getOrCreateSpeaker(WorldlyPosition location)
    • registerSpeaker

      public static RadioSpeaker registerSpeaker(RadioSpeaker speaker)
    • getListeners

      public static List<RadioListener> getListeners()
    • removeListener

      public static void removeListener(RadioListener listener)
    • removeListener

      public static void removeListener(Predicate<RadioListener> criteria)
    • removeListener

      public static void removeListener(short identifier)
    • removeListener

      public static void removeListener(net.minecraft.world.entity.Entity owner)
    • removeListener

      public static void removeListener(WorldlyPosition location)
    • removeListener

      public static void removeListener(UUID id)
    • getListener

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

      public static RadioListener getListener(WorldlyPosition location)
    • getListener

      public static RadioListener getListener(UUID id)
    • getListener

      public static RadioListener getListener(Predicate<RadioListener> filter)
    • getOrCreateListener

      public static RadioListener getOrCreateListener(net.minecraft.world.entity.Entity owner, @Nullable @Nullable UUID id)
    • getOrCreateListener

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

      public static RadioListener getOrCreateListener(WorldlyPosition location, @Nullable @Nullable UUID id)
    • getOrCreateListener

      public static RadioListener getOrCreateListener(WorldlyPosition location)
    • registerListener

      public static RadioListener registerListener(RadioListener listener)
    • close

      public static void close()
    • validate

      public static <R extends RadioRouter> void validate(List<R> container)
    • garbageCollect

      public static void garbageCollect()
    • levelTick

      public static void levelTick(net.minecraft.server.level.ServerLevel level)
    • serverTick

      public static void serverTick(int tickCount)
    • queueSource

      public static void queueSource(RadioSource source, RadioRouter destination, int delay)
    • dequeueSource

      public static void dequeueSource(Predicate<RadioManager.QueuedSource> criteria)
    • readQueue

      public static boolean readQueue(Predicate<RadioManager.QueuedSource> filter)
    • verifyLocationCollection

      public static boolean verifyLocationCollection(WorldlyPosition position, Class<?> clazz)
    • verifyEntityCollection

      public static boolean verifyEntityCollection(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.item.ItemStack> itemCriteria)
    • isEntityHolding

      @Nullable public static @Nullable net.minecraft.world.item.ItemStack isEntityHolding(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.item.ItemStack> handCriteria)
    • getListeners

      public static TreeMap<Float,RadioListener> getListeners(org.joml.Vector3f at)
    • onSoundPlayed

      public void onSoundPlayed(net.minecraft.server.level.ServerLevel level, net.minecraft.world.phys.Vec3 location, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundHolder, float volume, float pitch, long seed)
    • onSoundPlayed

      public void onSoundPlayed(net.minecraft.server.level.ServerLevel level, net.minecraft.world.phys.Vec3 location, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundHolder, float volume, float pitch, float offset, long seed)
    • onMicPacket

      public void onMicPacket(de.maxhenkel.voicechat.api.events.MicrophonePacketEvent event)