package org.quartzpowered.protocol.packet.play.client;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.quartzpowered.network.protocol.packet.Packet;

@Data
@EqualsAndHashCode(callSuper = true)
public class UpdateHealthPacket extends Packet {
    float health;
    int foodLevel;
    float saturation;
}

package org.quartzpowered.protocol.packet.play.client;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.quartzpowered.network.protocol.packet.Packet;

@Data
@EqualsAndHashCode(callSuper = true)
public class UpdateHealthPacket extends Packet {
    private float health;
    private int foodLevel;
    private float saturation;
}

Make packets private