mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
more progress
This commit is contained in:
1 parent
29bdcc8061
commit
9f496be5f3
66 files changed
+1179
-1153
No files matched your search
@@ -24,6 +24,7 @@ public class ChannelRegisterEvent extends Event {
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@SuppressWarnings("checkstyle:MethodName")
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
@@ -37,19 +38,19 @@ public class ChannelRegisterEvent extends Event {
|
||||
@NonNull
|
||||
private final Registry<ChatChannel> registry;
|
||||
|
||||
public ChannelRegisterEvent(@NonNull List<@NonNull ChatChannel> registeredChannels, @NonNull Registry<ChatChannel> registry) {
|
||||
public ChannelRegisterEvent(@NonNull final List<@NonNull ChatChannel> registeredChannels, @NonNull final Registry<ChatChannel> registry) {
|
||||
super(!Bukkit.isPrimaryThread());
|
||||
|
||||
this.registeredChannels = registeredChannels;
|
||||
this.registry = registry;
|
||||
}
|
||||
|
||||
public void register(@NonNull ChatChannel chatChannel) {
|
||||
registry.register(chatChannel.getKey(), chatChannel);
|
||||
public void register(@NonNull final ChatChannel chatChannel) {
|
||||
this.registry.register(chatChannel.key(), chatChannel);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public List<@NonNull ChatChannel> getRegisteredChannels() {
|
||||
return registeredChannels;
|
||||
public List<@NonNull ChatChannel> registeredChannels() {
|
||||
return this.registeredChannels;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user