Class CommonRadioPlugin
java.lang.Object
com.codinglitch.simpleradio.radio.CommonRadioPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic de.maxhenkel.voicechat.api.VoicechatApistatic @Nullable de.maxhenkel.voicechat.api.VolumeCategorystatic Stringstatic @Nullable de.maxhenkel.voicechat.api.VoicechatServerApistatic @Nullable de.maxhenkel.voicechat.api.VolumeCategorystatic Stringstatic @Nullable de.maxhenkel.voicechat.api.VolumeCategorystatic Stringstatic @Nullable de.maxhenkel.voicechat.api.VolumeCategorystatic String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatanalyzeActivity(short[] data) static short[]combineAudio(List<short[]> audioParts) static doublegetDoppler(org.joml.Vector3f sourcePosition, org.joml.Vector3f sourceVelocity, org.joml.Vector3f observerPosition, org.joml.Vector3f observerVelocity) static doublegetFalloff(float distance, float range) voidonServerStarted(de.maxhenkel.voicechat.api.events.VoicechatServerStartedEvent event) voidregisterEvents(de.maxhenkel.voicechat.api.events.EventRegistration registration) voidserverTick(int tickCount)
-
Field Details
-
RADIOS_CATEGORY
-
SPEAKERS_CATEGORY
-
WALKIES_CATEGORY
-
TRANSCEIVERS_CATEGORY
-
speakers
@Nullable public static @Nullable de.maxhenkel.voicechat.api.VolumeCategory speakers -
radios
@Nullable public static @Nullable de.maxhenkel.voicechat.api.VolumeCategory radios -
walkies
@Nullable public static @Nullable de.maxhenkel.voicechat.api.VolumeCategory walkies -
transceivers
@Nullable public static @Nullable de.maxhenkel.voicechat.api.VolumeCategory transceivers -
serverApi
@Nullable public static @Nullable de.maxhenkel.voicechat.api.VoicechatServerApi serverApi -
commonApi
public static de.maxhenkel.voicechat.api.VoicechatApi commonApi
-
-
Constructor Details
-
CommonRadioPlugin
public CommonRadioPlugin()
-
-
Method Details
-
analyzeActivity
public static float analyzeActivity(short[] data) -
combineAudio
-
getFalloff
public static double getFalloff(float distance, float range) -
getDoppler
public static double getDoppler(org.joml.Vector3f sourcePosition, org.joml.Vector3f sourceVelocity, org.joml.Vector3f observerPosition, org.joml.Vector3f observerVelocity) -
getPluginId
-
serverTick
public void serverTick(int tickCount) -
registerEvents
public void registerEvents(de.maxhenkel.voicechat.api.events.EventRegistration registration) -
onServerStarted
public void onServerStarted(de.maxhenkel.voicechat.api.events.VoicechatServerStartedEvent event)
-