@Override public void handleClientSettings(CPacketClientSettings packetIn) { if(m_realPlayer != null) { syncToRealPlayer(); m_realPlayer.handleClientSettings(packetIn); syncPublicFieldsFromReal(); } else { super.handleClientSettings(packetIn); } }
public void handleClientSettings(CPacketClientSettings packetIn) { this.language = packetIn.getLang(); this.chatVisibility = packetIn.getChatVisibility(); this.chatColours = packetIn.isColorsEnabled(); this.getDataManager().set(PLAYER_MODEL_FLAG, Byte.valueOf((byte)packetIn.getModelPartFlags())); this.getDataManager().set(MAIN_HAND, Byte.valueOf((byte)(packetIn.getMainHand() == EnumHandSide.LEFT ? 0 : 1))); }
/** * Send a client info packet with settings information to the server */ public void sendSettingsToServer() { if (this.mc.player != null) { int i = 0; for (EnumPlayerModelParts enumplayermodelparts : this.setModelParts) { i |= enumplayermodelparts.getPartMask(); } this.mc.player.connection.sendPacket(new CPacketClientSettings(this.language, this.renderDistanceChunks, this.chatVisibility, this.chatColours, i, this.mainHand)); } }
/** * Send a client info packet with settings information to the server */ public void sendSettingsToServer() { if (this.mc.thePlayer != null) { int i = 0; for (EnumPlayerModelParts enumplayermodelparts : this.setModelParts) { i |= enumplayermodelparts.getPartMask(); } this.mc.thePlayer.connection.sendPacket(new CPacketClientSettings(this.language, this.renderDistanceChunks, this.chatVisibility, this.chatColours, i, this.mainHand)); } }
/** * Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty, * and whether to show the cape */ public void processClientSettings(CPacketClientSettings packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld()); this.playerEntity.handleClientSettings(packetIn); }
@Override public void processClientSettings(CPacketClientSettings p_147352_1_) { }
@Override public void processClientSettings(@Nonnull CPacketClientSettings p_147352_1_) { }
@Override public void processClientSettings(CPacketClientSettings packetIn) { }
/** * Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty, * and whether to show the cape */ void processClientSettings(CPacketClientSettings packetIn);
@Override public void handleClientSettings(CPacketClientSettings pkt){ return; }