Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.kpdus.com/jad.html
- // Decompiler options: packimports(3) braces deadcode fieldsfirst
- package net.minecraft.src;
- import net.minecraft.client.Minecraft;
- // Referenced classes of package net.minecraft.src:
- // EntityPlayerSP, MathHelper, World, Packet19EntityAction,
- // NetClientHandler, AxisAlignedBB, Packet11PlayerPosition, Packet13PlayerLookMove,
- // Packet12PlayerLook, Packet10Flying, Packet14BlockDig, Packet3Chat,
- // Packet18Animation, Packet9Respawn, Packet101CloseWindow, Container,
- // InventoryPlayer, StatBase, Session, DamageSource,
- // EntityItem
- public class EntityClientPlayerMP extends EntityPlayerSP
- {
- public NetClientHandler sendQueue;
- private int inventoryUpdateTickCounter;
- private boolean field_21093_bH;
- private double oldPosX;
- private double field_9378_bz;
- private double oldPosY;
- private double oldPosZ;
- private float oldRotationYaw;
- private float oldRotationPitch;
- private boolean field_9382_bF;
- private boolean field_35227_cs;
- private boolean wasSneaking;
- private int field_12242_bI;
- public EntityClientPlayerMP(Minecraft minecraft, World world, Session session, NetClientHandler netclienthandler)
- {
- super(minecraft, world, session, 0);
- if(Hacks.fly)
- {
- onGround = false;
- }
- inventoryUpdateTickCounter = 0;
- field_21093_bH = false;
- field_9382_bF = false;
- field_35227_cs = false;
- wasSneaking = false;
- field_12242_bI = 0;
- sendQueue = netclienthandler;
- }
- public boolean attackEntityFrom(DamageSource damagesource, int i)
- {
- return false;
- }
- public void heal(int i)
- {
- }
- public void onUpdate()
- {
- if(!worldObj.blockExists(MathHelper.floor_double(posX), worldObj.field_35472_c / 2, MathHelper.floor_double(posZ)))
- {
- return;
- } else
- {
- super.onUpdate();
- onUpdate2();
- return;
- }
- }
- public void onUpdate2()
- {
- if(Hacks.nofall)
- {
- sendQueue.addToSendQueue(new Packet11PlayerPosition(motionX, -999D, -999D, motionZ, !onGround));
- }
- if(inventoryUpdateTickCounter++ == 20)
- {
- sendInventoryChanged();
- inventoryUpdateTickCounter = 0;
- if(Hacks.forcefield)
- {
- for(int i = 0; i < mc.theWorld.loadedEntityList.size(); i++)
- {
- if((Entity)mc.theWorld.loadedEntityList.get(i) != this && getDistanceSqToEntity((Entity)mc.theWorld.loadedEntityList.get(i)) < 25D && ((Entity)mc.theWorld.loadedEntityList.get(i) instanceof EntityLiving));
- {
- mc.playerController.attackEntity(this, (Entity)mc.theWorld.loadedEntityList.get(i));
- }
- }
- }
- }
- boolean flag = isSprinting();
- if(flag != wasSneaking)
- {
- if(flag)
- {
- sendQueue.addToSendQueue(new Packet19EntityAction(this, 4));
- } else
- {
- sendQueue.addToSendQueue(new Packet19EntityAction(this, 5));
- }
- wasSneaking = flag;
- }
- boolean flag1 = Hacks.sneak;
- if(flag1 != field_35227_cs)
- {
- if(flag1)
- {
- sendQueue.addToSendQueue(new Packet19EntityAction(this, 1));
- } else
- {
- sendQueue.addToSendQueue(new Packet19EntityAction(this, 2));
- }
- field_35227_cs = flag1;
- }
- double d = posX - oldPosX;
- double d1 = boundingBox.minY - field_9378_bz;
- double d2 = posY - oldPosY;
- double d3 = posZ - oldPosZ;
- double d4 = rotationYaw - oldRotationYaw;
- double d5 = rotationPitch - oldRotationPitch;
- boolean flag2 = d1 != 0.0D || d2 != 0.0D || d != 0.0D || d3 != 0.0D;
- boolean flag3 = d4 != 0.0D || d5 != 0.0D;
- if(ridingEntity != null)
- {
- if(flag3)
- {
- sendQueue.addToSendQueue(new Packet11PlayerPosition(motionX, -999D, -999D, motionZ, onGround));
- } else
- {
- sendQueue.addToSendQueue(new Packet13PlayerLookMove(motionX, -999D, -999D, motionZ, rotationYaw, rotationPitch, onGround));
- }
- flag2 = false;
- } else
- if(flag2 && flag3)
- {
- sendQueue.addToSendQueue(new Packet13PlayerLookMove(posX, boundingBox.minY, posY, posZ, rotationYaw, rotationPitch, onGround));
- field_12242_bI = 0;
- } else
- if(flag2)
- {
- sendQueue.addToSendQueue(new Packet11PlayerPosition(posX, boundingBox.minY, posY, posZ, onGround));
- field_12242_bI = 0;
- } else
- if(flag3)
- {
- sendQueue.addToSendQueue(new Packet12PlayerLook(rotationYaw, rotationPitch, onGround));
- field_12242_bI = 0;
- } else
- {
- sendQueue.addToSendQueue(new Packet10Flying(onGround));
- if(field_9382_bF != onGround || field_12242_bI > 200)
- {
- field_12242_bI = 0;
- } else
- {
- field_12242_bI++;
- }
- }
- field_9382_bF = onGround;
- if(flag2)
- {
- oldPosX = posX;
- field_9378_bz = boundingBox.minY;
- oldPosY = posY;
- oldPosZ = posZ;
- }
- if(flag3)
- {
- oldRotationYaw = rotationYaw;
- oldRotationPitch = rotationPitch;
- }
- }
- public void dropCurrentItem()
- {
- sendQueue.addToSendQueue(new Packet14BlockDig(4, 0, 0, 0, 0));
- }
- public void sendInventoryChanged()
- {
- }
- protected void joinEntityItemWithWorld(EntityItem entityitem)
- {
- }
- public void sendChatMessage(String s)
- {
- if(s.startsWith(".credits"))
- mc.thePlayer.addChatMessage("Client Do TeamRain");
- mc.thePlayer.addChatMessage("Coded By Amehecka");
- mc.thePlayer.addChatMessage("Ideias para features by Soul");
- return;
- {
- mc.thePlayer.addChatMessage("Bem vindo ao menu de keys!");
- mc.thePlayer.addChatMessage(".norender - No Render = Nao atualiza os blocos quando você quebra eles.");
- mc.thePlayer.addChatMessage(".fp - Fastplace = Coloca os blocos 3x mais rápido.");
- mc.thePlayer.addChatMessage(".coord - Coordenadas/Seed = Mostra na tela as cordenadas/seeds");
- return;
- }
- if(s.startsWith(".norender"))
- {
- mc.thePlayer.addChatMessage("= Para abrir menu.");
- mc.thePlayer.addChatMessage("Z - Sneak = Se camufla atrás de blocos.");
- mc.thePlayer.addChatMessage("U - Speedy = Quebra o bloco 2x mais rápido.");
- mc.thePlayer.addChatMessage("J - Jump = Um pulo maior.");
- mc.thePlayer.addChatMessage("K - Step = Deixa você andar por cima de 3x mais blocos.");
- mc.thePlayer.addChatMessage("X - XRay = Mostra algumas ores.");
- mc.thePlayer.addChatMessage("C - Fullbright = Deixa tudo claro.");
- mc.thePlayer.addChatMessage("G - Push = Você entra em mobs/players começa a empurrar eles.");
- mc.thePlayer.addChatMessage("F - Fly = Você voa.");
- return;
- }
- if(s.startsWith(".norender"))
- {
- Hacks.norender = !Hacks.norender;
- mc.thePlayer.addChatMessage("Norender ativado/desativado.");
- return;
- }
- if(s.startsWith(".coord"))
- {
- Hacks.coord = !Hacks.coord;
- mc.thePlayer.addChatMessage("Cordenadas ativadas/desativadas.");
- return;
- }
- if(s.startsWith(".fp"))
- {
- Hacks.fastplace = !Hacks.fastplace;
- mc.thePlayer.addChatMessage("Fastplace ativado/desativado");
- return;
- }
- if(s.startsWith(".help"))
- {
- mc.thePlayer.addChatMessage("Menu de ajuda do client RainCraft.");
- mc.thePlayer.addChatMessage("Para ver as keys, digite : .keys");
- mc.thePlayer.addChatMessage("Para ver os comandos por chat digite : .commands");
- mc.thePlayer.addChatMessage("Para ver os créditos digite : .credits");
- return;
- }
- if(s.startsWith(".menu"))
- {
- Hacks.menu = !Hacks.menu;
- return;
- }
- if(s.startsWith(".fb"))
- { mc.renderGlobal.loadRenderers();
- Hacks.fb = !Hacks.fb;
- return;
- }
- if(s.startsWith(".xray"))
- {
- mc.renderGlobal.loadRenderers();
- Hacks.xray = !Hacks.xray;
- return;
- }
- if(s.startsWith(".follow"))
- {
- Hacks.follow = !Hacks.follow;
- return;
- }
- sendQueue.addToSendQueue(new Packet3Chat(s));
- }
- public void swingItem()
- {
- super.swingItem();
- if(Hacks.noswing)
- {
- }else
- {
- sendQueue.addToSendQueue(new Packet18Animation(this, 1));
- }
- }
- public void respawnPlayer()
- {
- sendInventoryChanged();
- sendQueue.addToSendQueue(new Packet9Respawn((byte)dimension, (byte)worldObj.difficultySetting, worldObj.getWorldSeed(), worldObj.field_35472_c, 0));
- }
- protected void damageEntity(DamageSource damagesource, int i)
- {
- setEntityHealth(getEntityHealth() - i);
- }
- public void closeScreen()
- {
- sendQueue.addToSendQueue(new Packet101CloseWindow(craftingInventory.windowId));
- inventory.setItemStack(null);
- super.closeScreen();
- }
- public void setHealth(int i)
- {
- if(field_21093_bH)
- {
- super.setHealth(i);
- } else
- {
- setEntityHealth(i);
- field_21093_bH = true;
- }
- }
- public void addStat(StatBase statbase, int i)
- {
- if(statbase == null)
- {
- return;
- }
- if(statbase.isIndependent)
- {
- super.addStat(statbase, i);
- }
- }
- public void func_27027_b(StatBase statbase, int i)
- {
- if(statbase == null)
- {
- return;
- }
- if(!statbase.isIndependent)
- {
- super.addStat(statbase, i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement