@Override public void handleLevelSound(Packet62LevelSound par1Packet62LevelSound) { nch.handleLevelSound(par1Packet62LevelSound); }
public void func_72704_a(String p_72704_1_, double p_72704_2_, double p_72704_4_, double p_72704_6_, float p_72704_8_, float p_72704_9_) { this.field_72783_a.func_71203_ab().func_72393_a(p_72704_2_, p_72704_4_, p_72704_6_, p_72704_8_ > 1.0F?(double)(16.0F * p_72704_8_):16.0D, this.field_72782_b.field_73011_w.field_76574_g, new Packet62LevelSound(p_72704_1_, p_72704_2_, p_72704_4_, p_72704_6_, p_72704_8_, p_72704_9_)); }
public void func_85102_a(EntityPlayer p_85102_1_, String p_85102_2_, double p_85102_3_, double p_85102_5_, double p_85102_7_, float p_85102_9_, float p_85102_10_) { this.field_72783_a.func_71203_ab().func_72397_a(p_85102_1_, p_85102_3_, p_85102_5_, p_85102_7_, p_85102_9_ > 1.0F?(double)(16.0F * p_85102_9_):16.0D, this.field_72782_b.field_73011_w.field_76574_g, new Packet62LevelSound(p_85102_2_, p_85102_3_, p_85102_5_, p_85102_7_, p_85102_9_, p_85102_10_)); }
public void func_72457_a(Packet62LevelSound p_72457_1_) { this.func_72509_a(p_72457_1_); }
public void func_72457_a(Packet62LevelSound p_72457_1_) { this.field_72563_h.field_71441_e.func_72980_b(p_72457_1_.func_73572_f(), p_72457_1_.func_73568_g(), p_72457_1_.func_73569_h(), p_72457_1_.func_73570_d(), p_72457_1_.func_73571_i(), p_72457_1_.func_73573_j(), false); }
public void func_71515_b(ICommandSender p_71515_1_, String[] p_71515_2_) { if(p_71515_2_.length < 2) { throw new WrongUsageException(this.func_71518_a(p_71515_1_), new Object[0]); } else { byte var3 = 0; int var36 = var3 + 1; String var4 = p_71515_2_[var3]; EntityPlayerMP var5 = func_82359_c(p_71515_1_, p_71515_2_[var36++]); double var6 = (double)var5.func_82114_b().field_71574_a; double var8 = (double)var5.func_82114_b().field_71572_b; double var10 = (double)var5.func_82114_b().field_71573_c; double var12 = 1.0D; double var14 = 1.0D; double var16 = 0.0D; if(p_71515_2_.length > var36) { var6 = func_110666_a(p_71515_1_, var6, p_71515_2_[var36++]); } if(p_71515_2_.length > var36) { var8 = func_110665_a(p_71515_1_, var8, p_71515_2_[var36++], 0, 0); } if(p_71515_2_.length > var36) { var10 = func_110666_a(p_71515_1_, var10, p_71515_2_[var36++]); } if(p_71515_2_.length > var36) { var12 = func_110661_a(p_71515_1_, p_71515_2_[var36++], 0.0D, 3.4028234663852886E38D); } if(p_71515_2_.length > var36) { var14 = func_110661_a(p_71515_1_, p_71515_2_[var36++], 0.0D, 2.0D); } if(p_71515_2_.length > var36) { var16 = func_110661_a(p_71515_1_, p_71515_2_[var36++], 0.0D, 1.0D); } double var18 = var12 > 1.0D?var12 * 16.0D:16.0D; double var20 = var5.func_70011_f(var6, var8, var10); if(var20 > var18) { if(var16 <= 0.0D) { throw new CommandException("commands.playsound.playerTooFar", new Object[]{var5.func_70023_ak()}); } double var22 = var6 - var5.field_70165_t; double var24 = var8 - var5.field_70163_u; double var26 = var10 - var5.field_70161_v; double var28 = Math.sqrt(var22 * var22 + var24 * var24 + var26 * var26); double var30 = var5.field_70165_t; double var32 = var5.field_70163_u; double var34 = var5.field_70161_v; if(var28 > 0.0D) { var30 += var22 / var28 * 2.0D; var32 += var24 / var28 * 2.0D; var34 += var26 / var28 * 2.0D; } var5.field_71135_a.func_72567_b(new Packet62LevelSound(var4, var30, var32, var34, (float)var16, (float)var14)); } else { var5.field_71135_a.func_72567_b(new Packet62LevelSound(var4, var6, var8, var10, (float)var12, (float)var14)); } func_71522_a(p_71515_1_, "commands.playsound.success", new Object[]{var4, var5.func_70023_ak()}); } }
/** * Plays the specified sound. Arg: soundName, x, y, z, volume, pitch */ public void playSound(String par1Str, double par2, double par4, double par6, float par8, float par9) { this.mcServer.getConfigurationManager().sendToAllNear(par2, par4, par6, par8 > 1.0F ? (double)(16.0F * par8) : 16.0D, this.theWorldServer.provider.dimensionId, new Packet62LevelSound(par1Str, par2, par4, par6, par8, par9)); }
/** * Plays sound to all near players except the player reference given */ public void playSoundToNearExcept(EntityPlayer par1EntityPlayer, String par2Str, double par3, double par5, double par7, float par9, float par10) { this.mcServer.getConfigurationManager().sendToAllNearExcept(par1EntityPlayer, par3, par5, par7, par9 > 1.0F ? (double)(16.0F * par9) : 16.0D, this.theWorldServer.provider.dimensionId, new Packet62LevelSound(par2Str, par3, par5, par7, par9, par10)); }
public void handleLevelSound(Packet62LevelSound par1Packet62LevelSound) { this.mc.theWorld.playSound(par1Packet62LevelSound.getEffectX(), par1Packet62LevelSound.getEffectY(), par1Packet62LevelSound.getEffectZ(), par1Packet62LevelSound.getSoundName(), par1Packet62LevelSound.getVolume(), par1Packet62LevelSound.getPitch(), false); }