--- a/net/minecraft/network/protocol/Packet.java +++ b/net/minecraft/network/protocol/Packet.java @@ -11,6 +_,19 @@ 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; }