Java 类net.minecraft.network.play.client.CPacketClientSettings 实例源码

项目:UniversalRemote    文件:EntityPlayerMPProxy.java   
@Override
public void handleClientSettings(CPacketClientSettings packetIn) {
    if(m_realPlayer != null) {
        syncToRealPlayer();
        m_realPlayer.handleClientSettings(packetIn);
        syncPublicFieldsFromReal();
    } else {
        super.handleClientSettings(packetIn);
    }
}
项目:Zombe-Modpack    文件:EntityPlayerMP.java   
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)));
}
项目:Backmemed    文件:EntityPlayerMP.java   
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)));
}
项目:Backmemed    文件:GameSettings.java   
/**
 * 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));
    }
}
项目:CustomWorldGen    文件:EntityPlayerMP.java   
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)));
}
项目:CustomWorldGen    文件:GameSettings.java   
/**
 * 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));
    }
}
项目:ExpandedRailsMod    文件:EntityPlayerMP.java   
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)));
}
项目:ExpandedRailsMod    文件:GameSettings.java   
/**
 * 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));
    }
}
项目:Zombe-Modpack    文件:NetHandlerPlayServer.java   
/**
 * 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);
}
项目:Backmemed    文件:NetHandlerPlayServer.java   
/**
 * 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);
}
项目:CustomWorldGen    文件:NetHandlerPlayServer.java   
/**
 * 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);
}
项目:CrystalMod    文件:FakeNetHandlerPlayServer.java   
@Override
public void processClientSettings(CPacketClientSettings p_147352_1_) {
}
项目:ExpandedRailsMod    文件:NetHandlerPlayServer.java   
/**
 * 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);
}
项目:EnderIO    文件:FakeNetHandlerPlayServer.java   
@Override
public void processClientSettings(@Nonnull CPacketClientSettings p_147352_1_) {
}
项目:DankNull    文件:NetServerHandlerFake.java   
@Override
public void processClientSettings(CPacketClientSettings packetIn) {

}
项目:Backmemed    文件:INetHandlerPlayServer.java   
/**
 * Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty,
 * and whether to show the cape
 */
void processClientSettings(CPacketClientSettings packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayServer.java   
/**
 * Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty,
 * and whether to show the cape
 */
void processClientSettings(CPacketClientSettings packetIn);
项目:CustomWorldGen    文件:FakePlayer.java   
@Override public void handleClientSettings(CPacketClientSettings pkt){ return; }
项目:Mekfarm    文件:FakeMekPlayer.java   
@Override public void handleClientSettings(CPacketClientSettings pkt){ return; }