/* * Decompiled with CFR 0.152. * * Could not load the following classes: * javax.annotation.Nullable */ package de.maxhenkel.voicechat.plugins.impl.audiochannel; import de.maxhenkel.voicechat.api.ServerPlayer; import de.maxhenkel.voicechat.api.audiochannel.AudioChannel; import de.maxhenkel.voicechat.voice.server.Server; import java.util.UUID; import java.util.concurrent.atomic.AtomicLong; import java.util.function.Predicate; import javax.annotation.Nullable; public abstract class AudioChannelImpl implements AudioChannel { protected UUID channelId; protected Server server; protected AtomicLong sequenceNumber; @Nullable protected Predicate filter; @Nullable protected String category; public AudioChannelImpl(UUID channelId, Server server) { this.channelId = channelId; this.server = server; this.sequenceNumber = new AtomicLong(); } @Override public void setFilter(Predicate filter) { this.filter = filter; } @Override public UUID getId() { return this.channelId; } @Override public boolean isClosed() { return this.server.isClosed(); } @Override @Nullable public String getCategory() { return this.category; } @Override public void setCategory(@Nullable String category) { this.category = category; } }