Package org.spoutcraft.client.packet

Examples of org.spoutcraft.client.packet.PacketRenderDistance


  public void processPacket(NetHandler par1NetHandler) {
    // Spout Start
    if (entityId == -42) {
      SpoutClient.getInstance().setSpoutVersion(1);
      ((NetClientHandler) par1NetHandler).addToSendQueue(this);
      SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketRenderDistance((byte)Minecraft.getMinecraft().gameSettings.renderDistance));
      SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketFullVersion(SpoutClient.getClientVersion()));
      System.out.println("Detected SpoutPlugin enabled server.");
      if (this.mc.currentScreen instanceof GuiDownloadTerrain) {
        this.mc.displayGuiScreen(null, true);
        this.mc.displayGuiScreen(new org.spoutcraft.client.gui.precache.GuiPrecache());
View Full Code Here


        settings.keyBindToggleFog = new KeyBinding("key.fog", -1);
        if (view != newView) {
          Configuration.setRenderDistance(newView);
          Configuration.write();
          if (this instanceof EntityClientPlayerMP && Spoutcraft.getClient().isSpoutEnabled()) {
            SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketRenderDistance((byte)newView));
          }
        }
      // Sneak toggle
      } else if (key == settings.keySneakToggle.keyCode) {
        sneakToggle = !sneakToggle;
View Full Code Here

TOP

Related Classes of org.spoutcraft.client.packet.PacketRenderDistance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.