Class RadioManager
java.lang.Object
com.codinglitch.simpleradio.radio.RadioManager
- All Implemented Interfaces:
SimpleRadioApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()static voiddequeueSource(Predicate<RadioManager.QueuedSource> criteria) static voidstatic shortgetIdentifier(Predicate<RadioRouter> filter) static RadioManagerstatic RadioListenergetListener(WorldlyPosition location) static RadioListenergetListener(Predicate<RadioListener> filter) static RadioListenergetListener(UUID id) static RadioListenergetListener(net.minecraft.world.entity.Entity owner) static List<RadioListener>static TreeMap<Float,RadioListener> getListeners(org.joml.Vector3f at) static RadioListenergetOrCreateListener(WorldlyPosition location) static RadioListenergetOrCreateListener(WorldlyPosition location, @Nullable UUID id) static RadioListenergetOrCreateListener(net.minecraft.world.entity.Entity owner) static RadioListenergetOrCreateListener(net.minecraft.world.entity.Entity owner, @Nullable UUID id) static RadioSpeakergetOrCreateSpeaker(WorldlyPosition location) static RadioSpeakergetOrCreateSpeaker(WorldlyPosition location, @Nullable UUID id) static RadioSpeakergetOrCreateSpeaker(net.minecraft.world.entity.Entity owner) static RadioSpeakergetOrCreateSpeaker(net.minecraft.world.entity.Entity owner, @Nullable UUID id) static RadioRoutergetRouter(short identifier) static RadioRoutergetRouter(WorldlyPosition location) static RadioRoutergetRouter(Predicate<RadioRouter> filter) static RadioRouterstatic RadioRouterstatic RadioRoutergetRouter(net.minecraft.world.entity.Entity owner) static List<RadioRouter>static RadioRoutergetRouterSided(UUID reference, boolean isClient) static RadioRoutergetRouterSided(UUID reference, @Nullable String type, boolean isClient) static RadioSpeakergetSpeaker(WorldlyPosition location) static RadioSpeakergetSpeaker(Predicate<RadioSpeaker> filter) static RadioSpeakergetSpeaker(UUID id) static RadioSpeakergetSpeaker(net.minecraft.world.entity.Entity owner) static List<RadioSpeaker>static @Nullable net.minecraft.world.item.ItemStackisEntityHolding(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.item.ItemStack> handCriteria) static voidlevelTick(net.minecraft.server.level.ServerLevel level) voidonMicPacket(de.maxhenkel.voicechat.api.events.MicrophonePacketEvent event) voidonSoundPlayed(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) voidonSoundPlayed(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) static shortpushRouter(RadioRouter router) static shortpushRouter(Map<Short, RadioRouter> map, RadioRouter router) static <R extends RadioRouter>
voidputRouter(@Nullable RouterContainer<R> container, R router) static voidqueueSource(RadioSource source, RadioRouter destination, int delay) static booleanreadQueue(Predicate<RadioManager.QueuedSource> filter) static RadioListenerregisterListener(RadioListener listener) static voidregisterRouter(RadioRouter router) static voidregisterRouterSided(RadioRouter router, boolean isClient, @Nullable Frequency frequency) static RadioSpeakerregisterSpeaker(RadioSpeaker speaker) static voidremoveListener(short identifier) static voidremoveListener(WorldlyPosition location) static voidremoveListener(RadioListener listener) static voidremoveListener(Predicate<RadioListener> criteria) static voidremoveListener(UUID id) static voidremoveListener(net.minecraft.world.entity.Entity owner) static voidremoveRouter(short identifier) static voidremoveRouter(WorldlyPosition location) static voidremoveRouter(RadioRouter router) static voidremoveRouter(Predicate<RadioRouter> criteria) static voidremoveRouter(UUID uuid) static voidremoveRouter(net.minecraft.world.entity.Entity owner) static voidremoveRouterSided(RadioRouter router, boolean isClient) static voidremoveRouterSided(UUID uuid, boolean isClient) static voidremoveSpeaker(short identifier) static voidremoveSpeaker(WorldlyPosition location) static voidremoveSpeaker(RadioSpeaker speaker) static voidremoveSpeaker(Predicate<RadioSpeaker> criteria) static voidremoveSpeaker(UUID id) static voidremoveSpeaker(net.minecraft.world.entity.Entity owner) static voidserverTick(int tickCount) static <R extends RadioRouter>
voidstatic booleanverifyEntityCollection(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.item.ItemStack> itemCriteria) static booleanverifyLocationCollection(WorldlyPosition position, Class<?> clazz)
-
Constructor Details
-
RadioManager
public RadioManager()
-
-
Method Details
-
getInstance
-
putRouter
public static <R extends RadioRouter> void putRouter(@Nullable @Nullable RouterContainer<R> container, R router) -
pushRouter
-
pushRouter
-
getIdentifier
-
getRouters
-
removeRouter
-
removeRouter
-
removeRouter
public static void removeRouter(short identifier) -
removeRouter
-
removeRouter
public static void removeRouter(net.minecraft.world.entity.Entity owner) -
removeRouter
-
getRouter
-
getRouter
-
getRouter
-
getRouter
-
getRouter
-
getRouter
-
registerRouter
-
getRouterSided
-
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
-
removeRouterSided
-
getSpeakers
-
removeSpeaker
-
removeSpeaker
-
removeSpeaker
public static void removeSpeaker(short identifier) -
removeSpeaker
public static void removeSpeaker(net.minecraft.world.entity.Entity owner) -
removeSpeaker
-
removeSpeaker
-
getSpeaker
-
getSpeaker
-
getSpeaker
-
getSpeaker
-
getOrCreateSpeaker
public static RadioSpeaker getOrCreateSpeaker(net.minecraft.world.entity.Entity owner, @Nullable @Nullable UUID id) -
getOrCreateSpeaker
-
getOrCreateSpeaker
public static RadioSpeaker getOrCreateSpeaker(WorldlyPosition location, @Nullable @Nullable UUID id) -
getOrCreateSpeaker
-
registerSpeaker
-
getListeners
-
removeListener
-
removeListener
-
removeListener
public static void removeListener(short identifier) -
removeListener
public static void removeListener(net.minecraft.world.entity.Entity owner) -
removeListener
-
removeListener
-
getListener
-
getListener
-
getListener
-
getListener
-
getOrCreateListener
public static RadioListener getOrCreateListener(net.minecraft.world.entity.Entity owner, @Nullable @Nullable UUID id) -
getOrCreateListener
-
getOrCreateListener
public static RadioListener getOrCreateListener(WorldlyPosition location, @Nullable @Nullable UUID id) -
getOrCreateListener
-
registerListener
-
close
public static void close() -
validate
-
garbageCollect
public static void garbageCollect() -
levelTick
public static void levelTick(net.minecraft.server.level.ServerLevel level) -
serverTick
public static void serverTick(int tickCount) -
queueSource
-
dequeueSource
-
readQueue
-
verifyLocationCollection
-
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
-
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)
-