PaperMC/paper-server/patches/sources/net/minecraft/network/protocol/Packet.java.patch

23 lines
560 B
Diff
Raw Normal View History

--- a/net/minecraft/network/protocol/Packet.java
+++ b/net/minecraft/network/protocol/Packet.java
2024-12-13 18:56:07 +01:00
@@ -11,6 +_,19 @@
2024-12-13 18:56:07 +01:00
void handle(T handler);
+ // Paper start
+ default boolean hasLargePacketFallback() {
+ return false;
+ }
+
+ /**
+ * override {@link #hasLargePacketFallback()} to return true when overriding in subclasses
+ */
+ default boolean packetTooLarge(net.minecraft.network.Connection manager) {
+ return false;
+ }
+ // Paper end
+
default boolean isSkippable() {
return false;
}