• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java S24PacketBlockAction类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.minecraft.network.play.server.S24PacketBlockAction的典型用法代码示例。如果您正苦于以下问题:Java S24PacketBlockAction类的具体用法?Java S24PacketBlockAction怎么用?Java S24PacketBlockAction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



S24PacketBlockAction类属于net.minecraft.network.play.server包,在下文中一共展示了S24PacketBlockAction类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: sendQueuedBlockEvents

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
private void sendQueuedBlockEvents()
{
    while (!this.field_147490_S[this.blockEventCacheIndex].isEmpty())
    {
        int i = this.blockEventCacheIndex;
        this.blockEventCacheIndex ^= 1;

        for (BlockEventData blockeventdata : this.field_147490_S[i])
        {
            if (this.fireBlockEvent(blockeventdata))
            {
                this.mcServer.getConfigurationManager().sendToAllNear((double)blockeventdata.getPosition().getX(), (double)blockeventdata.getPosition().getY(), (double)blockeventdata.getPosition().getZ(), 64.0D, this.provider.getDimensionId(), new S24PacketBlockAction(blockeventdata.getPosition(), blockeventdata.getBlock(), blockeventdata.getEventID(), blockeventdata.getEventParameter()));
            }
        }

        this.field_147490_S[i].clear();
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:19,代码来源:WorldServer.java


示例2: func_147488_Z

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
private void func_147488_Z() {
	while (!this.field_147490_S[this.blockEventCacheIndex].isEmpty()) {
		int i = this.blockEventCacheIndex;
		this.blockEventCacheIndex ^= 1;

		for (final BlockEventData eventData : this.field_147490_S[i]) {
			if (this.func_147485_a(eventData)) {
				this.mcServer.getConfigurationManager().sendToAllNear((double) eventData.func_151340_a(),
						(double) eventData.func_151342_b(), (double) eventData.func_151341_c(), 64.0D,
						this.provider.dimensionId,
						new S24PacketBlockAction(eventData.func_151340_a(), eventData.func_151342_b(),
								eventData.func_151341_c(), eventData.getBlock(), eventData.getEventID(),
								eventData.getEventParameter()));
			}
		}

		this.field_147490_S[i].clear();
	}
}
 
开发者ID:OreCruncher,项目名称:Jiffy,代码行数:20,代码来源:WorldServer.java


示例3: func_147488_Z

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
private void func_147488_Z()
{
    while (!this.field_147490_S[this.field_147489_T].isEmpty())
    {
        int var1 = this.field_147489_T;
        this.field_147489_T ^= 1;
        Iterator var2 = this.field_147490_S[var1].iterator();

        while (var2.hasNext())
        {
            BlockEventData var3 = (BlockEventData)var2.next();

            if (this.func_147485_a(var3))
            {
                this.mcServer.getConfigurationManager().func_148541_a((double)var3.func_151340_a(), (double)var3.func_151342_b(), (double)var3.func_151341_c(), 64.0D, this.provider.dimensionId, new S24PacketBlockAction(var3.func_151340_a(), var3.func_151342_b(), var3.func_151341_c(), var3.getBlock(), var3.getEventID(), var3.getEventParameter()));
            }
        }

        this.field_147490_S[var1].clear();
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:22,代码来源:WorldServer.java


示例4: func_147488_Z

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
private void func_147488_Z()
{
    while (!this.field_147490_S[this.blockEventCacheIndex].isEmpty())
    {
        int i = this.blockEventCacheIndex;
        this.blockEventCacheIndex ^= 1;
        Iterator iterator = this.field_147490_S[i].iterator();

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

            if (this.func_147485_a(blockeventdata))
            {
                this.mcServer.getConfigurationManager().sendToAllNear((double)blockeventdata.func_151340_a(), (double)blockeventdata.func_151342_b(), (double)blockeventdata.func_151341_c(), 64.0D, this.provider.dimensionId, new S24PacketBlockAction(blockeventdata.func_151340_a(), blockeventdata.func_151342_b(), blockeventdata.func_151341_c(), blockeventdata.getBlock(), blockeventdata.getEventID(), blockeventdata.getEventParameter()));
            }
        }

        this.field_147490_S[i].clear();
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:22,代码来源:WorldServer.java


示例5: handleBlockAction

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
/**
 * Triggers Block.onBlockEventReceived, which is implemented in BlockPistonBase for extension/retraction, BlockNote
 * for setting the instrument (including audiovisual feedback) and in BlockContainer to set the number of players
 * accessing a (Ender)Chest
 */
public void handleBlockAction(S24PacketBlockAction packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    this.gameController.theWorld.addBlockEvent(packetIn.getBlockPosition(), packetIn.getBlockType(), packetIn.getData1(), packetIn.getData2());
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:11,代码来源:NetHandlerPlayClient.java


示例6: handleBlockAction

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
public void handleBlockAction(S24PacketBlockAction p_147261_1_)
{
    this.gameController.theWorld.addBlockEvent(p_147261_1_.func_148867_d(), p_147261_1_.func_148866_e(), p_147261_1_.func_148865_f(), p_147261_1_.func_148868_c(), p_147261_1_.func_148869_g(), p_147261_1_.func_148864_h());
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:5,代码来源:NetHandlerPlayClient.java


示例7: handleBlockAction

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
/**
 * Triggers Block.onBlockEventReceived, which is implemented in BlockPistonBase for extension/retraction, BlockNote
 * for setting the instrument (including audiovisual feedback) and in BlockContainer to set the number of players
 * accessing a (Ender)Chest
 */
void handleBlockAction(S24PacketBlockAction packetIn);
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:7,代码来源:INetHandlerPlayClient.java


示例8: handleBlockAction

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
/**
 * Triggers Block.onBlockEventReceived, which is implemented in BlockPistonBase
 * for extension/retraction, BlockNote for setting the instrument (including
 * audiovisual feedback) and in BlockContainer to set the number of players
 * accessing a (Ender)Chest
 */
public void handleBlockAction(S24PacketBlockAction packetIn) {
	PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
	this.gameController.theWorld.addBlockEvent(packetIn.getBlockPosition(), packetIn.getBlockType(),
			packetIn.getData1(), packetIn.getData2());
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:12,代码来源:NetHandlerPlayClient.java


示例9: handleBlockAction

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
/**
 * Triggers Block.onBlockEventReceived, which is implemented in BlockPistonBase for extension/retraction, BlockNote
 * for setting the instrument (including audiovisual feedback) and in BlockContainer to set the number of players
 * accessing a (Ender)Chest
 */
void handleBlockAction(S24PacketBlockAction var1);
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:7,代码来源:INetHandlerPlayClient.java


示例10: handleBlockAction

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
/**
 * Triggers Block.onBlockEventReceived, which is implemented in BlockPistonBase for extension/retraction, BlockNote
 * for setting the instrument (including audiovisual feedback) and in BlockContainer to set the number of players
 * accessing a (Ender)Chest
 */
public void handleBlockAction(S24PacketBlockAction p_147261_1_)
{
    this.gameController.theWorld.func_147452_c(p_147261_1_.func_148867_d(), p_147261_1_.func_148866_e(), p_147261_1_.func_148865_f(), p_147261_1_.func_148868_c(), p_147261_1_.func_148869_g(), p_147261_1_.func_148864_h());
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:10,代码来源:NetHandlerPlayClient.java


示例11: handleBlockAction

import net.minecraft.network.play.server.S24PacketBlockAction; //导入依赖的package包/类
void handleBlockAction(S24PacketBlockAction p_147261_1_); 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:2,代码来源:INetHandlerPlayClient.java



注:本文中的net.minecraft.network.play.server.S24PacketBlockAction类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ImageAdapter类代码示例发布时间:2022-05-23
下一篇:
Java Whitespace类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap