当前位置: 首页>>代码示例>>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;未经允许,请勿转载。