Java 类net.minecraft.network.packet.Packet54PlayNoteBlock 实例源码

项目:RuneCraftery    文件:WorldServer.java   
private void func_73055_Q() {
   while(!this.field_73067_Q[this.field_73070_R].isEmpty()) {
      int var1 = this.field_73070_R;
      this.field_73070_R ^= 1;
      Iterator var2 = this.field_73067_Q[var1].iterator();

      while(var2.hasNext()) {
         BlockEventData var3 = (BlockEventData)var2.next();
         if(this.func_73043_a(var3)) {
            this.field_73061_a.func_71203_ab().func_72393_a((double)var3.func_76919_a(), (double)var3.func_76921_b(), (double)var3.func_76920_c(), 64.0D, this.field_73011_w.field_76574_g, new Packet54PlayNoteBlock(var3.func_76919_a(), var3.func_76921_b(), var3.func_76920_c(), var3.func_76916_f(), var3.func_76918_d(), var3.func_76917_e()));
         }
      }

      this.field_73067_Q[var1].clear();
   }

}
项目:RuneCraftery    文件:WorldServer.java   
/**
 * Send and apply locally all pending BlockEvents to each player with 64m radius of the event.
 */
private void sendAndApplyBlockEvents()
{
    while (!this.blockEventCache[this.blockEventCacheIndex].isEmpty())
    {
        int i = this.blockEventCacheIndex;
        this.blockEventCacheIndex ^= 1;
        Iterator iterator = this.blockEventCache[i].iterator();

        while (iterator.hasNext())
        {
            BlockEventData blockeventdata = (BlockEventData)iterator.next();

            if (this.onBlockEventReceived(blockeventdata))
            {
                this.mcServer.getConfigurationManager().sendToAllNear((double)blockeventdata.getX(), (double)blockeventdata.getY(), (double)blockeventdata.getZ(), 64.0D, this.provider.dimensionId, new Packet54PlayNoteBlock(blockeventdata.getX(), blockeventdata.getY(), blockeventdata.getZ(), blockeventdata.getBlockID(), blockeventdata.getEventID(), blockeventdata.getEventParameter()));
            }
        }

        this.blockEventCache[i].clear();
    }
}
项目:BetterNutritionMod    文件:WorldServer.java   
/**
 * Send and apply locally all pending BlockEvents to each player with 64m radius of the event.
 */
private void sendAndApplyBlockEvents()
{
    while (!this.blockEventCache[this.blockEventCacheIndex].isEmpty())
    {
        int i = this.blockEventCacheIndex;
        this.blockEventCacheIndex ^= 1;
        Iterator iterator = this.blockEventCache[i].iterator();

        while (iterator.hasNext())
        {
            BlockEventData blockeventdata = (BlockEventData)iterator.next();

            if (this.onBlockEventReceived(blockeventdata))
            {
                this.mcServer.getConfigurationManager().sendToAllNear((double)blockeventdata.getX(), (double)blockeventdata.getY(), (double)blockeventdata.getZ(), 64.0D, this.provider.dimensionId, new Packet54PlayNoteBlock(blockeventdata.getX(), blockeventdata.getY(), blockeventdata.getZ(), blockeventdata.getBlockID(), blockeventdata.getEventID(), blockeventdata.getEventParameter()));
            }
        }

        this.blockEventCache[i].clear();
    }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
{
    nch.handleBlockEvent(par1Packet54PlayNoteBlock);        
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72454_a(Packet54PlayNoteBlock p_72454_1_) {
   this.func_72509_a(p_72454_1_);
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72454_a(Packet54PlayNoteBlock p_72454_1_) {
   this.field_72563_h.field_71441_e.func_72965_b(p_72454_1_.field_73340_a, p_72454_1_.field_73338_b, p_72454_1_.field_73339_c, p_72454_1_.field_73335_f, p_72454_1_.field_73336_d, p_72454_1_.field_73337_e);
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void handleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
{
    this.mc.theWorld.addBlockEvent(par1Packet54PlayNoteBlock.xLocation, par1Packet54PlayNoteBlock.yLocation, par1Packet54PlayNoteBlock.zLocation, par1Packet54PlayNoteBlock.blockId, par1Packet54PlayNoteBlock.instrumentType, par1Packet54PlayNoteBlock.pitch);
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
public void handleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
{
    this.mc.theWorld.addBlockEvent(par1Packet54PlayNoteBlock.xLocation, par1Packet54PlayNoteBlock.yLocation, par1Packet54PlayNoteBlock.zLocation, par1Packet54PlayNoteBlock.blockId, par1Packet54PlayNoteBlock.instrumentType, par1Packet54PlayNoteBlock.pitch);
}