commands, camera, messages, overlay, ..

This commit is contained in:
Sen 2025-03-26 12:22:32 +01:00
parent 75f91dbf4c
commit d45cd7ec2c
126 changed files with 854 additions and 628 deletions

View file

@ -80,8 +80,8 @@ import game.item.ItemSword;
import game.item.ItemTool;
import game.nbt.NBTTagCompound;
import game.nbt.NBTTagList;
import game.network.NetHandlerPlayClient;
import game.network.NetHandlerPlayServer;
import game.network.ClientPlayer;
import game.network.Player;
import game.packet.CPacketAction;
import game.packet.CPacketBreak;
import game.packet.CPacketInput;
@ -197,8 +197,8 @@ public abstract class EntityNPC extends EntityLiving
private int healTimer;
private byte[] skin;
public NetHandlerPlayServer connection;
public NetHandlerPlayClient sendQueue;
public Player connection;
public ClientPlayer sendQueue;
protected Game gm;
public InventoryPlayer inventory;
@ -397,13 +397,13 @@ public abstract class EntityNPC extends EntityLiving
this.getEntityAttribute(Attributes.MOVEMENT_SPEED).setBaseValue(this.getEntityAttribute(Attributes.MOVEMENT_SPEED).getBaseValue() / 3.0); // 0.10000000149011612D);
}
public final void setServerPlayer(NetHandlerPlayServer connection) {
public final void setServerPlayer(Player connection) {
this.initPlayer();
this.connection = connection;
this.stepHeight = 0.0F;
}
public final void setClientPlayer(Game gm, NetHandlerPlayClient connection) {
public final void setClientPlayer(Game gm, ClientPlayer connection) {
this.initPlayer();
this.gm = gm;
this.sendQueue = connection;