refactor(packet): convert to record
This commit is contained in:
parent
1a499fe7cc
commit
942c6e3609
1 changed files with 1 additions and 9 deletions
|
@ -30,15 +30,7 @@ import java.util.Optional;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
|
|
||||||
public class PacketEventsPacketSender implements PacketSender {
|
public record PacketEventsPacketSender(Player player, NickoProfile profile) implements PacketSender {
|
||||||
private final Player player;
|
|
||||||
private final NickoProfile profile;
|
|
||||||
|
|
||||||
public PacketEventsPacketSender(Player player, NickoProfile profile) {
|
|
||||||
this.player = player;
|
|
||||||
this.profile = profile;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendEntityRespawn() {
|
public void sendEntityRespawn() {
|
||||||
if (!profile.hasData()) return;
|
if (!profile.hasData()) return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue