]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/common/models/ServerPlayer.java
Upgrade to 1.14.2
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / common / models / ServerPlayer.java
index 1496b16a1dc9c628809f1264d1236c676cea663c..241c7d77f91db63050dfeadae4dc4dfe286f1ca8 100644 (file)
@@ -1,16 +1,16 @@
 package com.irtimaled.bbor.common.models;
 
 import com.irtimaled.bbor.common.messages.PayloadBuilder;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.network.Packet;
+import net.minecraft.entity.player.ServerPlayerEntity;
+import net.minecraft.network.IPacket;
 
 import java.util.function.Consumer;
 
 public class ServerPlayer {
     private final int dimensionId;
-    private final Consumer<Packet<?>> packetConsumer;
+    private final Consumer<IPacket<?>> packetConsumer;
 
-    public ServerPlayer(EntityPlayerMP player) {
+    public ServerPlayer(ServerPlayerEntity player) {
         this.dimensionId = player.dimension.getId();
         this.packetConsumer = player.connection::sendPacket;
     }