first commit
Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
This commit is contained in:
commit
bbccd4a815
454 files changed
+45050
No files matched your search
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatPlugin;
|
||||
|
||||
public interface BukkitVoicechatService {
|
||||
public void registerPlugin(VoicechatPlugin var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.RawUdpPacket;
|
||||
import java.net.SocketAddress;
|
||||
|
||||
public interface ClientVoicechatSocket {
|
||||
public void open() throws Exception;
|
||||
|
||||
public RawUdpPacket read() throws Exception;
|
||||
|
||||
public void send(byte[] var1, SocketAddress var2) throws Exception;
|
||||
|
||||
public void close();
|
||||
|
||||
public boolean isClosed();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface Entity {
|
||||
public UUID getUuid();
|
||||
|
||||
public Object getEntity();
|
||||
|
||||
public Position getPosition();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(value=RetentionPolicy.RUNTIME)
|
||||
public @interface ForgeVoicechatPlugin {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface Group {
|
||||
public String getName();
|
||||
|
||||
public boolean hasPassword();
|
||||
|
||||
public UUID getId();
|
||||
|
||||
public boolean isPersistent();
|
||||
|
||||
public boolean isHidden();
|
||||
|
||||
public Type getType();
|
||||
|
||||
public static interface Builder {
|
||||
public Builder setId(@Nullable UUID var1);
|
||||
|
||||
public Builder setName(String var1);
|
||||
|
||||
public Builder setPassword(@Nullable String var1);
|
||||
|
||||
public Builder setPersistent(boolean var1);
|
||||
|
||||
public Builder setHidden(boolean var1);
|
||||
|
||||
public Builder setType(Type var1);
|
||||
|
||||
public Group build();
|
||||
}
|
||||
|
||||
public static interface Type {
|
||||
public static final Type NORMAL = new Type(){};
|
||||
public static final Type OPEN = new Type(){};
|
||||
public static final Type ISOLATED = new Type(){};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Entity;
|
||||
|
||||
public interface Player
|
||||
extends Entity {
|
||||
public Object getPlayer();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
public interface Position {
|
||||
public double getX();
|
||||
|
||||
public double getY();
|
||||
|
||||
public double getZ();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import java.net.SocketAddress;
|
||||
|
||||
public interface RawUdpPacket {
|
||||
public byte[] getData();
|
||||
|
||||
public long getTimestamp();
|
||||
|
||||
public SocketAddress getSocketAddress();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
public interface ServerLevel {
|
||||
public Object getServerLevel();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Player;
|
||||
import de.maxhenkel.voicechat.api.ServerLevel;
|
||||
|
||||
public interface ServerPlayer
|
||||
extends Player {
|
||||
public ServerLevel getServerLevel();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Entity;
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.ServerLevel;
|
||||
import de.maxhenkel.voicechat.api.ServerPlayer;
|
||||
import de.maxhenkel.voicechat.api.VolumeCategory;
|
||||
import de.maxhenkel.voicechat.api.audio.AudioConverter;
|
||||
import de.maxhenkel.voicechat.api.mp3.Mp3Decoder;
|
||||
import de.maxhenkel.voicechat.api.mp3.Mp3Encoder;
|
||||
import de.maxhenkel.voicechat.api.opus.OpusDecoder;
|
||||
import de.maxhenkel.voicechat.api.opus.OpusEncoder;
|
||||
import de.maxhenkel.voicechat.api.opus.OpusEncoderMode;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.sound.sampled.AudioFormat;
|
||||
|
||||
public interface VoicechatApi {
|
||||
public OpusEncoder createEncoder();
|
||||
|
||||
public OpusEncoder createEncoder(OpusEncoderMode var1);
|
||||
|
||||
public OpusDecoder createDecoder();
|
||||
|
||||
@Nullable
|
||||
public Mp3Encoder createMp3Encoder(AudioFormat var1, int var2, int var3, OutputStream var4);
|
||||
|
||||
@Nullable
|
||||
public Mp3Decoder createMp3Decoder(InputStream var1);
|
||||
|
||||
public AudioConverter getAudioConverter();
|
||||
|
||||
public Entity fromEntity(Object var1);
|
||||
|
||||
public ServerLevel fromServerLevel(Object var1);
|
||||
|
||||
public ServerPlayer fromServerPlayer(Object var1);
|
||||
|
||||
public Position createPosition(double var1, double var3, double var5);
|
||||
|
||||
public VolumeCategory.Builder volumeCategoryBuilder();
|
||||
|
||||
public double getVoiceChatDistance();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Entity;
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.VoicechatApi;
|
||||
import de.maxhenkel.voicechat.api.VolumeCategory;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.ClientEntityAudioChannel;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.ClientLocationalAudioChannel;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.ClientStaticAudioChannel;
|
||||
import de.maxhenkel.voicechat.api.config.ConfigAccessor;
|
||||
import de.maxhenkel.voicechat.api.config.VolumeConfigAccessor;
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface VoicechatClientApi
|
||||
extends VoicechatApi {
|
||||
public boolean isMuted();
|
||||
|
||||
default public boolean isDisabled() {
|
||||
return this.isDisabled(null);
|
||||
}
|
||||
|
||||
public boolean isDisabled(@Nullable UUID var1);
|
||||
|
||||
default public boolean isDisconnected() {
|
||||
return this.isDisconnected(null);
|
||||
}
|
||||
|
||||
public boolean isDisconnected(@Nullable UUID var1);
|
||||
|
||||
default public boolean isTalking() {
|
||||
return this.isTalking(null);
|
||||
}
|
||||
|
||||
public boolean isTalking(@Nullable UUID var1);
|
||||
|
||||
default public boolean isWhispering() {
|
||||
return this.isWhispering(null);
|
||||
}
|
||||
|
||||
public boolean isWhispering(@Nullable UUID var1);
|
||||
|
||||
public boolean isPushToTalkKeyPressed();
|
||||
|
||||
public boolean isWhisperKeyPressed();
|
||||
|
||||
@Nullable
|
||||
public Group getGroup();
|
||||
|
||||
@Deprecated
|
||||
public ClientEntityAudioChannel createEntityAudioChannel(UUID var1);
|
||||
|
||||
public ClientEntityAudioChannel createEntityAudioChannel(UUID var1, Entity var2);
|
||||
|
||||
public ClientLocationalAudioChannel createLocationalAudioChannel(UUID var1, Position var2);
|
||||
|
||||
public ClientStaticAudioChannel createStaticAudioChannel(UUID var1);
|
||||
|
||||
public void registerClientVolumeCategory(VolumeCategory var1);
|
||||
|
||||
default public void unregisterClientVolumeCategory(VolumeCategory category) {
|
||||
this.unregisterClientVolumeCategory(category.getId());
|
||||
}
|
||||
|
||||
public void unregisterClientVolumeCategory(String var1);
|
||||
|
||||
public ConfigAccessor getClientConfig();
|
||||
|
||||
public VolumeConfigAccessor getVolumeConfig();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.ServerPlayer;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface VoicechatConnection {
|
||||
@Nullable
|
||||
public Group getGroup();
|
||||
|
||||
public boolean isInGroup();
|
||||
|
||||
public void setGroup(@Nullable Group var1);
|
||||
|
||||
public boolean isConnected();
|
||||
|
||||
public void setConnected(boolean var1);
|
||||
|
||||
public boolean isDisabled();
|
||||
|
||||
public void setDisabled(boolean var1);
|
||||
|
||||
public boolean isInstalled();
|
||||
|
||||
public ServerPlayer getPlayer();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatApi;
|
||||
import de.maxhenkel.voicechat.api.events.EventRegistration;
|
||||
|
||||
public interface VoicechatPlugin {
|
||||
public String getPluginId();
|
||||
|
||||
default public void initialize(VoicechatApi api) {
|
||||
}
|
||||
|
||||
default public void registerEvents(EventRegistration registration) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Entity;
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.ServerLevel;
|
||||
import de.maxhenkel.voicechat.api.ServerPlayer;
|
||||
import de.maxhenkel.voicechat.api.VoicechatApi;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.VolumeCategory;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.AudioChannel;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.AudioPlayer;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.EntityAudioChannel;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.LocationalAudioChannel;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.StaticAudioChannel;
|
||||
import de.maxhenkel.voicechat.api.audiolistener.AudioListener;
|
||||
import de.maxhenkel.voicechat.api.audiolistener.PlayerAudioListener;
|
||||
import de.maxhenkel.voicechat.api.audiosender.AudioSender;
|
||||
import de.maxhenkel.voicechat.api.config.ConfigAccessor;
|
||||
import de.maxhenkel.voicechat.api.opus.OpusEncoder;
|
||||
import de.maxhenkel.voicechat.api.packets.ConvertablePacket;
|
||||
import de.maxhenkel.voicechat.api.packets.EntitySoundPacket;
|
||||
import de.maxhenkel.voicechat.api.packets.LocationalSoundPacket;
|
||||
import de.maxhenkel.voicechat.api.packets.StaticSoundPacket;
|
||||
import java.util.Collection;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.function.Supplier;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface VoicechatServerApi
|
||||
extends VoicechatApi {
|
||||
public void sendEntitySoundPacketTo(VoicechatConnection var1, EntitySoundPacket var2);
|
||||
|
||||
public void sendLocationalSoundPacketTo(VoicechatConnection var1, LocationalSoundPacket var2);
|
||||
|
||||
public void sendStaticSoundPacketTo(VoicechatConnection var1, StaticSoundPacket var2);
|
||||
|
||||
public ConvertablePacket createPacket();
|
||||
|
||||
@Nullable
|
||||
public EntityAudioChannel createEntityAudioChannel(UUID var1, Entity var2);
|
||||
|
||||
@Nullable
|
||||
public LocationalAudioChannel createLocationalAudioChannel(UUID var1, ServerLevel var2, Position var3);
|
||||
|
||||
@Deprecated
|
||||
@Nullable
|
||||
public StaticAudioChannel createStaticAudioChannel(UUID var1, ServerLevel var2, VoicechatConnection var3);
|
||||
|
||||
@Nullable
|
||||
public StaticAudioChannel createStaticAudioChannel(UUID var1);
|
||||
|
||||
public AudioPlayer createAudioPlayer(AudioChannel var1, OpusEncoder var2, Supplier<short[]> var3);
|
||||
|
||||
public AudioPlayer createAudioPlayer(AudioChannel var1, OpusEncoder var2, short[] var3);
|
||||
|
||||
public AudioSender createAudioSender(VoicechatConnection var1);
|
||||
|
||||
public boolean registerAudioSender(AudioSender var1);
|
||||
|
||||
public boolean unregisterAudioSender(AudioSender var1);
|
||||
|
||||
public PlayerAudioListener.Builder playerAudioListenerBuilder();
|
||||
|
||||
public boolean registerAudioListener(AudioListener var1);
|
||||
|
||||
public boolean unregisterAudioListener(AudioListener var1);
|
||||
|
||||
public boolean unregisterAudioListener(UUID var1);
|
||||
|
||||
@Nullable
|
||||
public VoicechatConnection getConnectionOf(UUID var1);
|
||||
|
||||
@Nullable
|
||||
default public VoicechatConnection getConnectionOf(ServerPlayer player) {
|
||||
return this.getConnectionOf(player.getUuid());
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public Group createGroup(String var1, @Nullable String var2);
|
||||
|
||||
@Deprecated
|
||||
public Group createGroup(String var1, @Nullable String var2, boolean var3);
|
||||
|
||||
public Group.Builder groupBuilder();
|
||||
|
||||
public boolean removeGroup(UUID var1);
|
||||
|
||||
@Nullable
|
||||
public Group getGroup(UUID var1);
|
||||
|
||||
public Collection<Group> getGroups();
|
||||
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public UUID getSecret(UUID var1);
|
||||
|
||||
public Collection<ServerPlayer> getPlayersInRange(ServerLevel var1, Position var2, double var3, Predicate<ServerPlayer> var5);
|
||||
|
||||
public double getBroadcastRange();
|
||||
|
||||
default public Collection<ServerPlayer> getPlayersInRange(ServerLevel level, Position pos, double range) {
|
||||
return this.getPlayersInRange(level, pos, range, null);
|
||||
}
|
||||
|
||||
public void registerVolumeCategory(VolumeCategory var1);
|
||||
|
||||
default public void unregisterVolumeCategory(VolumeCategory category) {
|
||||
this.unregisterVolumeCategory(category.getId());
|
||||
}
|
||||
|
||||
public void unregisterVolumeCategory(String var1);
|
||||
|
||||
public Collection<VolumeCategory> getVolumeCategories();
|
||||
|
||||
public ConfigAccessor getServerConfig();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import de.maxhenkel.voicechat.api.RawUdpPacket;
|
||||
import java.net.SocketAddress;
|
||||
|
||||
public interface VoicechatSocket {
|
||||
public void open(int var1, String var2) throws Exception;
|
||||
|
||||
public RawUdpPacket read() throws Exception;
|
||||
|
||||
public void send(byte[] var1, SocketAddress var2) throws Exception;
|
||||
|
||||
public int getLocalPort();
|
||||
|
||||
public void close();
|
||||
|
||||
public boolean isClosed();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface VolumeCategory {
|
||||
public String getId();
|
||||
|
||||
public String getName();
|
||||
|
||||
@Nullable
|
||||
public String getNameTranslationKey();
|
||||
|
||||
@Nullable
|
||||
public String getDescription();
|
||||
|
||||
@Nullable
|
||||
public String getDescriptionTranslationKey();
|
||||
|
||||
@Nullable
|
||||
public int[][] getIcon();
|
||||
|
||||
public static interface Builder {
|
||||
public Builder setId(String var1);
|
||||
|
||||
public Builder setName(String var1);
|
||||
|
||||
public Builder setNameTranslationKey(@Nullable String var1);
|
||||
|
||||
public Builder setDescription(@Nullable String var1);
|
||||
|
||||
public Builder setDescriptionTranslationKey(@Nullable String var1);
|
||||
|
||||
public Builder setIcon(@Nullable int[][] var1);
|
||||
|
||||
public VolumeCategory build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audio;
|
||||
|
||||
public interface AudioConverter {
|
||||
public short[] bytesToShorts(byte[] var1);
|
||||
|
||||
public byte[] shortsToBytes(short[] var1);
|
||||
|
||||
public short[] floatsToShorts(float[] var1);
|
||||
|
||||
public float[] shortsToFloats(short[] var1);
|
||||
|
||||
public byte[] floatsToBytes(float[] var1);
|
||||
|
||||
public float[] bytesToFloats(byte[] var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
import de.maxhenkel.voicechat.api.ServerPlayer;
|
||||
import de.maxhenkel.voicechat.api.packets.MicrophonePacket;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Predicate;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface AudioChannel {
|
||||
public void send(byte[] var1);
|
||||
|
||||
public void send(MicrophonePacket var1);
|
||||
|
||||
public void setFilter(Predicate<ServerPlayer> var1);
|
||||
|
||||
public void flush();
|
||||
|
||||
public boolean isClosed();
|
||||
|
||||
public UUID getId();
|
||||
|
||||
@Nullable
|
||||
public String getCategory();
|
||||
|
||||
public void setCategory(@Nullable String var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
public interface AudioPlayer {
|
||||
public void startPlaying();
|
||||
|
||||
public void stopPlaying();
|
||||
|
||||
public boolean isStarted();
|
||||
|
||||
public boolean isPlaying();
|
||||
|
||||
public boolean isStopped();
|
||||
|
||||
public void setOnStopped(Runnable var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface ClientAudioChannel {
|
||||
public UUID getId();
|
||||
|
||||
public void play(short[] var1);
|
||||
|
||||
@Nullable
|
||||
public String getCategory();
|
||||
|
||||
public void setCategory(@Nullable String var1);
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
import de.maxhenkel.voicechat.api.audiochannel.ClientAudioChannel;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface ClientEntityAudioChannel
|
||||
extends ClientAudioChannel {
|
||||
public UUID getEntityId();
|
||||
|
||||
public void setWhispering(boolean var1);
|
||||
|
||||
public boolean isWhispering();
|
||||
|
||||
public float getDistance();
|
||||
|
||||
public void setDistance(float var1);
|
||||
}
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.ClientAudioChannel;
|
||||
|
||||
public interface ClientLocationalAudioChannel
|
||||
extends ClientAudioChannel {
|
||||
public Position getLocation();
|
||||
|
||||
public void setLocation(Position var1);
|
||||
|
||||
public float getDistance();
|
||||
|
||||
public void setDistance(float var1);
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
import de.maxhenkel.voicechat.api.audiochannel.ClientAudioChannel;
|
||||
|
||||
public interface ClientStaticAudioChannel
|
||||
extends ClientAudioChannel {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Entity;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.AudioChannel;
|
||||
|
||||
public interface EntityAudioChannel
|
||||
extends AudioChannel {
|
||||
public boolean isWhispering();
|
||||
|
||||
public void setWhispering(boolean var1);
|
||||
|
||||
public void updateEntity(Entity var1);
|
||||
|
||||
public Entity getEntity();
|
||||
|
||||
public float getDistance();
|
||||
|
||||
public void setDistance(float var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.AudioChannel;
|
||||
|
||||
public interface LocationalAudioChannel
|
||||
extends AudioChannel {
|
||||
public void updateLocation(Position var1);
|
||||
|
||||
public Position getLocation();
|
||||
|
||||
public float getDistance();
|
||||
|
||||
public void setDistance(float var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiochannel;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.audiochannel.AudioChannel;
|
||||
|
||||
public interface StaticAudioChannel
|
||||
extends AudioChannel {
|
||||
public void setBypassGroupIsolation(boolean var1);
|
||||
|
||||
public boolean bypassesGroupIsolation();
|
||||
|
||||
public void addTarget(VoicechatConnection var1);
|
||||
|
||||
public void removeTarget(VoicechatConnection var1);
|
||||
|
||||
public void clearTargets();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiolistener;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public interface AudioListener {
|
||||
public UUID getListenerId();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiolistener;
|
||||
|
||||
import de.maxhenkel.voicechat.api.ServerPlayer;
|
||||
import de.maxhenkel.voicechat.api.audiolistener.AudioListener;
|
||||
import de.maxhenkel.voicechat.api.packets.SoundPacket;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public interface PlayerAudioListener
|
||||
extends AudioListener {
|
||||
public UUID getPlayerUuid();
|
||||
|
||||
public static interface Builder {
|
||||
public Builder setPlayer(ServerPlayer var1);
|
||||
|
||||
public Builder setPlayer(UUID var1);
|
||||
|
||||
public Builder setPacketListener(Consumer<SoundPacket> var1);
|
||||
|
||||
public PlayerAudioListener build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.audiosender;
|
||||
|
||||
public interface AudioSender {
|
||||
public AudioSender whispering(boolean var1);
|
||||
|
||||
public boolean isWhispering();
|
||||
|
||||
public AudioSender sequenceNumber(long var1);
|
||||
|
||||
public boolean canSend();
|
||||
|
||||
public boolean send(byte[] var1);
|
||||
|
||||
public boolean reset();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.config;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface ConfigAccessor {
|
||||
public boolean hasKey(String var1);
|
||||
|
||||
@Nullable
|
||||
public String getValue(String var1);
|
||||
|
||||
default public String getString(String key, String def) {
|
||||
String value = this.getValue(key);
|
||||
if (value == null) {
|
||||
return def;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
default public boolean getBoolean(String key, boolean def) {
|
||||
String value = this.getValue(key);
|
||||
if (value == null) {
|
||||
return def;
|
||||
}
|
||||
return Boolean.parseBoolean(value);
|
||||
}
|
||||
|
||||
default public int getInt(String key, int def) {
|
||||
String value = this.getValue(key);
|
||||
if (value == null) {
|
||||
return def;
|
||||
}
|
||||
return Integer.parseInt(value);
|
||||
}
|
||||
|
||||
default public double getDouble(String key, double def) {
|
||||
String value = this.getValue(key);
|
||||
if (value == null) {
|
||||
return def;
|
||||
}
|
||||
return Double.parseDouble(value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.config;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public interface VolumeConfigAccessor {
|
||||
public double getVolume(UUID var1);
|
||||
|
||||
public double getCategoryVolume(String var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatClientApi;
|
||||
import de.maxhenkel.voicechat.api.events.Event;
|
||||
|
||||
public interface ClientEvent
|
||||
extends Event {
|
||||
public VoicechatClientApi getVoicechat();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface ClientReceiveSoundEvent
|
||||
extends ClientEvent {
|
||||
public UUID getId();
|
||||
|
||||
public short[] getRawAudio();
|
||||
|
||||
public void setRawAudio(@Nullable short[] var1);
|
||||
|
||||
public static interface StaticSound
|
||||
extends ClientReceiveSoundEvent {
|
||||
}
|
||||
|
||||
public static interface LocationalSound
|
||||
extends ClientReceiveSoundEvent {
|
||||
public Position getPosition();
|
||||
|
||||
public float getDistance();
|
||||
}
|
||||
|
||||
public static interface EntitySound
|
||||
extends ClientReceiveSoundEvent {
|
||||
public UUID getEntityId();
|
||||
|
||||
public boolean isWhispering();
|
||||
|
||||
public float getDistance();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
|
||||
public interface ClientSoundEvent
|
||||
extends ClientEvent {
|
||||
public short[] getRawAudio();
|
||||
|
||||
public void setRawAudio(short[] var1);
|
||||
|
||||
public boolean isWhispering();
|
||||
}
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
|
||||
public interface ClientVoicechatConnectionEvent
|
||||
extends ClientEvent {
|
||||
public boolean isConnected();
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.ClientVoicechatSocket;
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface ClientVoicechatInitializationEvent
|
||||
extends ClientEvent {
|
||||
public void setSocketImplementation(ClientVoicechatSocket var1);
|
||||
|
||||
@Nullable
|
||||
public ClientVoicechatSocket getSocketImplementation();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.GroupEvent;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface CreateGroupEvent
|
||||
extends GroupEvent {
|
||||
@Override
|
||||
public Group getGroup();
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public VoicechatConnection getConnection();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
|
||||
public interface CreateOpenALContextEvent
|
||||
extends ClientEvent {
|
||||
public long getContext();
|
||||
|
||||
public long getDevice();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
|
||||
public interface DestroyOpenALContextEvent
|
||||
extends ClientEvent {
|
||||
public long getContext();
|
||||
|
||||
public long getDevice();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.SoundPacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.EntitySoundPacket;
|
||||
|
||||
public interface EntitySoundPacketEvent
|
||||
extends SoundPacketEvent<EntitySoundPacket> {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
public interface Event {
|
||||
public boolean isCancellable();
|
||||
|
||||
public boolean cancel();
|
||||
|
||||
public boolean isCancelled();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.Event;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public interface EventRegistration {
|
||||
public <T extends Event> void registerEvent(Class<T> var1, Consumer<T> var2, int var3);
|
||||
|
||||
default public <T extends Event> void registerEvent(Class<T> eventClass, Consumer<T> onPacket) {
|
||||
this.registerEvent(eventClass, onPacket, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface GroupEvent
|
||||
extends ServerEvent {
|
||||
@Nullable
|
||||
public Group getGroup();
|
||||
|
||||
@Nullable
|
||||
public VoicechatConnection getConnection();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.GroupEvent;
|
||||
|
||||
public interface JoinGroupEvent
|
||||
extends GroupEvent {
|
||||
@Override
|
||||
public Group getGroup();
|
||||
|
||||
@Override
|
||||
public VoicechatConnection getConnection();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.GroupEvent;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface LeaveGroupEvent
|
||||
extends GroupEvent {
|
||||
@Override
|
||||
@Nullable
|
||||
public Group getGroup();
|
||||
|
||||
@Override
|
||||
public VoicechatConnection getConnection();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.SoundPacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.LocationalSoundPacket;
|
||||
|
||||
public interface LocationalSoundPacketEvent
|
||||
extends SoundPacketEvent<LocationalSoundPacket> {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
|
||||
public interface MergeClientSoundEvent
|
||||
extends ClientEvent {
|
||||
public void mergeAudio(short[] var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
|
||||
public interface MicrophoneMuteEvent
|
||||
extends ClientEvent {
|
||||
public boolean isDisabled();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.PacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.MicrophonePacket;
|
||||
|
||||
public interface MicrophonePacketEvent
|
||||
extends PacketEvent<MicrophonePacket> {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface NameTagIconRenderEvent
|
||||
extends ClientEvent {
|
||||
public UUID getEntityId();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface OpenALSoundEvent
|
||||
extends ClientEvent {
|
||||
@Nullable
|
||||
public Position getPosition();
|
||||
|
||||
@Nullable
|
||||
public UUID getChannelId();
|
||||
|
||||
public int getSource();
|
||||
|
||||
@Nullable
|
||||
public String getCategory();
|
||||
|
||||
public static interface Post
|
||||
extends OpenALSoundEvent {
|
||||
}
|
||||
|
||||
public static interface Pre
|
||||
extends OpenALSoundEvent {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.Packet;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface PacketEvent<T extends Packet>
|
||||
extends ServerEvent {
|
||||
public T getPacket();
|
||||
|
||||
@Nullable
|
||||
public VoicechatConnection getReceiverConnection();
|
||||
|
||||
@Nullable
|
||||
public VoicechatConnection getSenderConnection();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
|
||||
public interface PlayerConnectedEvent
|
||||
extends ServerEvent {
|
||||
public VoicechatConnection getConnection();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface PlayerDisconnectedEvent
|
||||
extends ServerEvent {
|
||||
public UUID getPlayerUuid();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface PlayerStateChangedEvent
|
||||
extends ServerEvent {
|
||||
public boolean isDisabled();
|
||||
|
||||
public boolean isDisconnected();
|
||||
|
||||
public UUID getPlayerUuid();
|
||||
|
||||
@Nullable
|
||||
public VoicechatConnection getConnection();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.VolumeCategoryEvent;
|
||||
|
||||
public interface RegisterVolumeCategoryEvent
|
||||
extends VolumeCategoryEvent {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Group;
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.GroupEvent;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface RemoveGroupEvent
|
||||
extends GroupEvent {
|
||||
@Override
|
||||
public Group getGroup();
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public VoicechatConnection getConnection();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatServerApi;
|
||||
import de.maxhenkel.voicechat.api.events.Event;
|
||||
|
||||
public interface ServerEvent
|
||||
extends Event {
|
||||
public VoicechatServerApi getVoicechat();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.PacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.Packet;
|
||||
|
||||
public interface SoundPacketEvent<T extends Packet>
|
||||
extends PacketEvent<T> {
|
||||
public static final String SOURCE_GROUP = "group";
|
||||
public static final String SOURCE_PROXIMITY = "proximity";
|
||||
public static final String SOURCE_SPECTATOR = "spectator";
|
||||
public static final String SOURCE_PLUGIN = "plugin";
|
||||
|
||||
public String getSource();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.SoundPacketEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.StaticSoundPacket;
|
||||
|
||||
public interface StaticSoundPacketEvent
|
||||
extends SoundPacketEvent<StaticSoundPacket> {
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.VolumeCategoryEvent;
|
||||
|
||||
public interface UnregisterVolumeCategoryEvent
|
||||
extends VolumeCategoryEvent {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatConnection;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
import de.maxhenkel.voicechat.api.packets.MicrophonePacket;
|
||||
|
||||
public interface VoiceDistanceEvent
|
||||
extends ServerEvent {
|
||||
public MicrophonePacket getPacket();
|
||||
|
||||
public VoicechatConnection getSenderConnection();
|
||||
|
||||
public float getDistance();
|
||||
|
||||
public void setDistance(float var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.ServerPlayer;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
|
||||
public interface VoiceHostEvent
|
||||
extends ServerEvent {
|
||||
public String getVoiceHost();
|
||||
|
||||
public void setVoiceHost(String var1);
|
||||
|
||||
public ServerPlayer getPlayer();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ClientEvent;
|
||||
|
||||
public interface VoicechatDisableEvent
|
||||
extends ClientEvent {
|
||||
public boolean isDisabled();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
|
||||
public interface VoicechatServerStartedEvent
|
||||
extends ServerEvent {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VoicechatSocket;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface VoicechatServerStartingEvent
|
||||
extends ServerEvent {
|
||||
public void setSocketImplementation(VoicechatSocket var1);
|
||||
|
||||
@Nullable
|
||||
public VoicechatSocket getSocketImplementation();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
|
||||
public interface VoicechatServerStoppedEvent
|
||||
extends ServerEvent {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.events;
|
||||
|
||||
import de.maxhenkel.voicechat.api.VolumeCategory;
|
||||
import de.maxhenkel.voicechat.api.events.ServerEvent;
|
||||
|
||||
public interface VolumeCategoryEvent
|
||||
extends ServerEvent {
|
||||
public VolumeCategory getVolumeCategory();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.mp3;
|
||||
|
||||
import java.io.IOException;
|
||||
import javax.sound.sampled.AudioFormat;
|
||||
|
||||
public interface Mp3Decoder {
|
||||
public short[] decode() throws IOException;
|
||||
|
||||
public AudioFormat getAudioFormat() throws IOException;
|
||||
|
||||
public int getBitrate() throws IOException;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.mp3;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public interface Mp3Encoder {
|
||||
public void encode(short[] var1) throws IOException;
|
||||
|
||||
public void close() throws IOException;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.opus;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface OpusDecoder {
|
||||
public short[] decode(@Nullable byte[] var1);
|
||||
|
||||
public short[][] decode(byte[] var1, int var2);
|
||||
|
||||
public void resetState();
|
||||
|
||||
public boolean isClosed();
|
||||
|
||||
public void close();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.opus;
|
||||
|
||||
public interface OpusEncoder {
|
||||
public byte[] encode(short[] var1);
|
||||
|
||||
public void resetState();
|
||||
|
||||
public boolean isClosed();
|
||||
|
||||
public void close();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.opus;
|
||||
|
||||
public enum OpusEncoderMode {
|
||||
VOIP,
|
||||
AUDIO,
|
||||
RESTRICTED_LOWDELAY;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.packets;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.packets.EntitySoundPacket;
|
||||
import de.maxhenkel.voicechat.api.packets.LocationalSoundPacket;
|
||||
import de.maxhenkel.voicechat.api.packets.StaticSoundPacket;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface ConvertablePacket {
|
||||
public EntitySoundPacket.Builder<?> entitySoundPacketBuilder();
|
||||
|
||||
public LocationalSoundPacket.Builder<?> locationalSoundPacketBuilder();
|
||||
|
||||
public StaticSoundPacket.Builder<?> staticSoundPacketBuilder();
|
||||
|
||||
@Deprecated
|
||||
public EntitySoundPacket toEntitySoundPacket(UUID var1, boolean var2);
|
||||
|
||||
@Deprecated
|
||||
public LocationalSoundPacket toLocationalSoundPacket(Position var1);
|
||||
|
||||
@Deprecated
|
||||
public StaticSoundPacket toStaticSoundPacket();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.packets;
|
||||
|
||||
import de.maxhenkel.voicechat.api.packets.SoundPacket;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface EntitySoundPacket
|
||||
extends SoundPacket {
|
||||
public UUID getEntityUuid();
|
||||
|
||||
public boolean isWhispering();
|
||||
|
||||
public float getDistance();
|
||||
|
||||
public static interface Builder<T extends Builder<T>>
|
||||
extends SoundPacket.Builder<T, EntitySoundPacket> {
|
||||
public T entityUuid(UUID var1);
|
||||
|
||||
public T whispering(boolean var1);
|
||||
|
||||
public T distance(float var1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.packets;
|
||||
|
||||
import de.maxhenkel.voicechat.api.Position;
|
||||
import de.maxhenkel.voicechat.api.packets.SoundPacket;
|
||||
|
||||
public interface LocationalSoundPacket
|
||||
extends SoundPacket {
|
||||
public Position getPosition();
|
||||
|
||||
public float getDistance();
|
||||
|
||||
public static interface Builder<T extends Builder<T>>
|
||||
extends SoundPacket.Builder<T, LocationalSoundPacket> {
|
||||
public T position(Position var1);
|
||||
|
||||
public T distance(float var1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.packets;
|
||||
|
||||
import de.maxhenkel.voicechat.api.packets.ConvertablePacket;
|
||||
import de.maxhenkel.voicechat.api.packets.Packet;
|
||||
|
||||
public interface MicrophonePacket
|
||||
extends Packet,
|
||||
ConvertablePacket {
|
||||
public boolean isWhispering();
|
||||
|
||||
public byte[] getOpusEncodedData();
|
||||
|
||||
public void setOpusEncodedData(byte[] var1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.packets;
|
||||
|
||||
public interface Packet {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.annotation.Nullable
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.packets;
|
||||
|
||||
import de.maxhenkel.voicechat.api.packets.ConvertablePacket;
|
||||
import de.maxhenkel.voicechat.api.packets.Packet;
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface SoundPacket
|
||||
extends Packet,
|
||||
ConvertablePacket {
|
||||
public UUID getChannelId();
|
||||
|
||||
public UUID getSender();
|
||||
|
||||
public byte[] getOpusEncodedData();
|
||||
|
||||
public long getSequenceNumber();
|
||||
|
||||
@Nullable
|
||||
public String getCategory();
|
||||
|
||||
public static interface Builder<T extends Builder<T, P>, P extends SoundPacket> {
|
||||
public T channelId(UUID var1);
|
||||
|
||||
public T sender(UUID var1);
|
||||
|
||||
public T opusEncodedData(byte[] var1);
|
||||
|
||||
public T sequenceNumber(long var1);
|
||||
|
||||
public T category(@Nullable String var1);
|
||||
|
||||
public P build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.api.packets;
|
||||
|
||||
import de.maxhenkel.voicechat.api.packets.SoundPacket;
|
||||
|
||||
public interface StaticSoundPacket
|
||||
extends SoundPacket {
|
||||
|
||||
public static interface Builder<T extends Builder<T>>
|
||||
extends SoundPacket.Builder<T, StaticSoundPacket> {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user