// Generated by delombok at Tue Dec 16 19:35:15 UTC 2025
package net.md_5.bungee.protocol;

import io.netty.buffer.ByteBuf;

public class PacketWrapper {
    public final DefinedPacket packet;
    public final ByteBuf buf;
    public final Protocol protocol;
    private boolean released;

    public void trySingleRelease() {
        if (!released) {
            buf.release();
            released = true;
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PacketWrapper(final DefinedPacket packet, final ByteBuf buf, final Protocol protocol) {
        this.packet = packet;
        this.buf = buf;
        this.protocol = protocol;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setReleased(final boolean released) {
        this.released = released;
    }
}
