more progress

This commit is contained in:
Draycia committed 2020-09-10 01:42:18 -07:00
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;
}
}