refactor(packet): convert to record

This commit is contained in:
ineanto 2025-06-30 11:40:22 +02:00
parent 1a499fe7cc
commit 942c6e3609
Signed by: ineanto
GPG key ID: E511F9CAA2F9CE84

View file

@ -30,15 +30,7 @@ import java.util.Optional;
import java.util.Random;
import java.util.concurrent.ExecutionException;
public class PacketEventsPacketSender implements PacketSender {
private final Player player;
private final NickoProfile profile;
public PacketEventsPacketSender(Player player, NickoProfile profile) {
this.player = player;
this.profile = profile;
}
public record PacketEventsPacketSender(Player player, NickoProfile profile) implements PacketSender {
@Override
public void sendEntityRespawn() {
if (!profile.hasData()) return;