當前位置: 首頁>>代碼示例>>Java>>正文


Java Packet54PlayNoteBlock類代碼示例

本文整理匯總了Java中net.minecraft.network.packet.Packet54PlayNoteBlock的典型用法代碼示例。如果您正苦於以下問題:Java Packet54PlayNoteBlock類的具體用法?Java Packet54PlayNoteBlock怎麽用?Java Packet54PlayNoteBlock使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Packet54PlayNoteBlock類屬於net.minecraft.network.packet包,在下文中一共展示了Packet54PlayNoteBlock類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: func_73055_Q

import net.minecraft.network.packet.Packet54PlayNoteBlock; //導入依賴的package包/類
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();
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:18,代碼來源:WorldServer.java

示例2: sendAndApplyBlockEvents

import net.minecraft.network.packet.Packet54PlayNoteBlock; //導入依賴的package包/類
/**
 * 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();
    }
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:25,代碼來源:WorldServer.java

示例3: handleBlockEvent

import net.minecraft.network.packet.Packet54PlayNoteBlock; //導入依賴的package包/類
@Override
public void handleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
{
	nch.handleBlockEvent(par1Packet54PlayNoteBlock);		
}
 
開發者ID:xurei,項目名稱:forge_world_downloader,代碼行數:6,代碼來源:WDLNetClientHandler.java

示例4: func_72454_a

import net.minecraft.network.packet.Packet54PlayNoteBlock; //導入依賴的package包/類
public void func_72454_a(Packet54PlayNoteBlock p_72454_1_) {
   this.func_72509_a(p_72454_1_);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:4,代碼來源:NetHandler.java

示例5: func_72454_a

import net.minecraft.network.packet.Packet54PlayNoteBlock; //導入依賴的package包/類
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);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:4,代碼來源:NetClientHandler.java

示例6: handleBlockEvent

import net.minecraft.network.packet.Packet54PlayNoteBlock; //導入依賴的package包/類
public void handleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
{
    this.mc.theWorld.addBlockEvent(par1Packet54PlayNoteBlock.xLocation, par1Packet54PlayNoteBlock.yLocation, par1Packet54PlayNoteBlock.zLocation, par1Packet54PlayNoteBlock.blockId, par1Packet54PlayNoteBlock.instrumentType, par1Packet54PlayNoteBlock.pitch);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:5,代碼來源:NetClientHandler.java


注:本文中的net.minecraft.network.packet.Packet54PlayNoteBlock類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。