File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
src/main/java/net/hypixel/modapi Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -185,14 +185,14 @@ public boolean sendPacket(HypixelPacket packet) {
185
185
186
186
private static class RegisteredHandlerImpl <T extends ClientboundHypixelPacket > implements RegisteredHandler <T > {
187
187
private final ClientboundPacketHandler <T > handler ;
188
- private ErrorHandler < T > errorHandler ;
188
+ private ErrorHandler errorHandler ;
189
189
190
190
RegisteredHandlerImpl (ClientboundPacketHandler <T > handler ) {
191
191
this .handler = handler ;
192
192
}
193
193
194
194
@ Override
195
- public void onError (ErrorHandler < T > errorHandler ) {
195
+ public void onError (ErrorHandler errorHandler ) {
196
196
if (this .errorHandler != null ) {
197
197
throw new IllegalStateException ("Error handler already set" );
198
198
}
Original file line number Diff line number Diff line change 1
1
package net .hypixel .modapi .handler ;
2
2
3
3
import net .hypixel .modapi .error .ErrorReason ;
4
- import net .hypixel .modapi .packet .ClientboundHypixelPacket ;
5
4
6
5
@ FunctionalInterface
7
- public interface ErrorHandler < T extends ClientboundHypixelPacket > {
6
+ public interface ErrorHandler {
8
7
void onError (ErrorReason reason );
9
8
}
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ public interface RegisteredHandler<T extends ClientboundHypixelPacket> {
8
8
* <br>
9
9
* Note: This error may be received due to any modification requesting the same packet type.
10
10
*/
11
- void onError (ErrorHandler < T > errorHandler );
11
+ void onError (ErrorHandler errorHandler );
12
12
}
You can’t perform that action at this time.
0 commit comments