/* 61: */ /* 62: */ public void setRotationAngles( float f, float f1, float f2, float f3, float f4, float f5, Entity entity) /* 63: */ { /* 64:101 */ super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); /* 65:102 */ EntityHumanBase e = (EntityHumanBase) entity; /* 66:104 */ if (e.isSitting()) /* 67: */ { /* 68:106 */ this.bipedRightArm.rotateAngleX += 1.1F; /* 69:107 */ this.bipedLeftArm.rotateAngleX += 1.1F; /* 70: */ } /* 71:109 */ if (e.isTwoHanded()) /* 72: */ { /* 73:111 */ this.bipedRightArm.rotateAngleX += 0.5F; /* 74:112 */ this.bipedLeftArm.rotateAngleX += 0.5F; /* 75: */ } /* 76:114 */ else if (!e.isAiming()) /* 77: */ { /* 78:116 */ this.bipedRightArm.rotateAngleX -= 0.7F; /* 79:117 */ this.bipedLeftArm.rotateAngleX -= 0.7F; /* 80: */ } /* 81:120 */ if (e.isDefending()) { /* 82:122 */ setShiedRotation(f2); /* 83: */ } /* 84:126 */ this.bipedRightLeg.setRotationPoint(2.0F, 7.0F, 8.0F); /* 85:127 */ this.bipedLeftLeg.setRotationPoint(2.0F, 7.0F, 8.0F); /* 86:128 */ this.bipedBody.rotateAngleX = 0.7F; /* 87: */ }
/* 107: */ /* 108: */ public static boolean saveToSpawner(int x, int y, int z, EntityHumanBase human) /* 109: */ { /* 110:101 */ World world = human.worldObj; /* 111:102 */ if (world.getBlock(x, y, z) != Blocks.air) { /* 112:103 */ y++; /* 113: */ } /* 114:105 */ world.setBlock(x, y, z, ChocolateQuest.spawner); /* 115:106 */ BlockMobSpawnerTileEntity te = new BlockMobSpawnerTileEntity(); /* 116:107 */ NBTTagCompound tag = new NBTTagCompound(); /* 117:108 */ human.writeToNBTOptional(tag); /* 118:109 */ human.writeEntityToSpawnerNBT(tag, x, y, z); /* 119:110 */ te.mobNBT = tag; /* 120:111 */ te.mob = -1; /* 121:112 */ world.setTileEntity(x, y, z, te); /* 122:113 */ return true; /* 123: */ }