本文整理汇总了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;未经允许,请勿转载。 |
请发表评论