Java 类net.minecraft.network.play.server.S24PacketBlockAction 实例源码

项目:DecompiledMinecraft    文件:WorldServer.java   
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();
    }
}
项目:DecompiledMinecraft    文件:WorldServer.java   
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();
    }
}
项目:BaseClient    文件:WorldServer.java   
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();
    }
}
项目:BaseClient    文件:WorldServer.java   
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();
    }
}
项目:Jiffy    文件:WorldServer.java   
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();
    }
}
项目:Resilience-Client-Source    文件:WorldServer.java   
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();
    }
}
项目:Cauldron    文件:WorldServer.java   
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();
    }
}
项目:Cauldron    文件:WorldServer.java   
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();
    }
}
项目:DecompiledMinecraft    文件:NetHandlerPlayClient.java   
/**
 * 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());
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * 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());
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
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());
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
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());
}
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * 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);
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * 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);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * 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);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * 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);
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * 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());
}
项目:Resilience-Client-Source    文件:INetHandlerPlayClient.java   
/**
 * 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);
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
/**
 * 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());
}
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleBlockAction(S24PacketBlockAction p_147261_1_);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleBlockAction(S24PacketBlockAction p_147261_1_);