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

项目:DecompiledMinecraft    文件:WorldManager.java   
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
{
    for (EntityPlayerMP entityplayermp : this.mcServer.getConfigurationManager().func_181057_v())
    {
        if (entityplayermp != null && entityplayermp.worldObj == this.theWorldServer && entityplayermp.getEntityId() != breakerId)
        {
            double d0 = (double)pos.getX() - entityplayermp.posX;
            double d1 = (double)pos.getY() - entityplayermp.posY;
            double d2 = (double)pos.getZ() - entityplayermp.posZ;

            if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D)
            {
                entityplayermp.playerNetServerHandler.sendPacket(new S25PacketBlockBreakAnim(breakerId, pos, progress));
            }
        }
    }
}
项目:DecompiledMinecraft    文件:WorldManager.java   
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
{
    for (EntityPlayerMP entityplayermp : this.mcServer.getConfigurationManager().func_181057_v())
    {
        if (entityplayermp != null && entityplayermp.worldObj == this.theWorldServer && entityplayermp.getEntityId() != breakerId)
        {
            double d0 = (double)pos.getX() - entityplayermp.posX;
            double d1 = (double)pos.getY() - entityplayermp.posY;
            double d2 = (double)pos.getZ() - entityplayermp.posZ;

            if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D)
            {
                entityplayermp.playerNetServerHandler.sendPacket(new S25PacketBlockBreakAnim(breakerId, pos, progress));
            }
        }
    }
}
项目:BaseClient    文件:WorldManager.java   
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
{
    for (EntityPlayerMP entityplayermp : this.mcServer.getConfigurationManager().func_181057_v())
    {
        if (entityplayermp != null && entityplayermp.worldObj == this.theWorldServer && entityplayermp.getEntityId() != breakerId)
        {
            double d0 = (double)pos.getX() - entityplayermp.posX;
            double d1 = (double)pos.getY() - entityplayermp.posY;
            double d2 = (double)pos.getZ() - entityplayermp.posZ;

            if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D)
            {
                entityplayermp.playerNetServerHandler.sendPacket(new S25PacketBlockBreakAnim(breakerId, pos, progress));
            }
        }
    }
}
项目:BaseClient    文件:WorldManager.java   
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
{
    for (EntityPlayerMP entityplayermp : this.mcServer.getConfigurationManager().func_181057_v())
    {
        if (entityplayermp != null && entityplayermp.worldObj == this.theWorldServer && entityplayermp.getEntityId() != breakerId)
        {
            double d0 = (double)pos.getX() - entityplayermp.posX;
            double d1 = (double)pos.getY() - entityplayermp.posY;
            double d2 = (double)pos.getZ() - entityplayermp.posZ;

            if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D)
            {
                entityplayermp.playerNetServerHandler.sendPacket(new S25PacketBlockBreakAnim(breakerId, pos, progress));
            }
        }
    }
}
项目:Resilience-Client-Source    文件:WorldManager.java   
/**
 * Starts (or continues) destroying a block with given ID at the given coordinates for the given partially destroyed
 * value
 */
public void destroyBlockPartially(int p_147587_1_, int p_147587_2_, int p_147587_3_, int p_147587_4_, int p_147587_5_)
{
    Iterator var6 = this.mcServer.getConfigurationManager().playerEntityList.iterator();

    while (var6.hasNext())
    {
        EntityPlayerMP var7 = (EntityPlayerMP)var6.next();

        if (var7 != null && var7.worldObj == this.theWorldServer && var7.getEntityId() != p_147587_1_)
        {
            double var8 = (double)p_147587_2_ - var7.posX;
            double var10 = (double)p_147587_3_ - var7.posY;
            double var12 = (double)p_147587_4_ - var7.posZ;

            if (var8 * var8 + var10 * var10 + var12 * var12 < 1024.0D)
            {
                var7.playerNetServerHandler.sendPacket(new S25PacketBlockBreakAnim(p_147587_1_, p_147587_2_, p_147587_3_, p_147587_4_, p_147587_5_));
            }
        }
    }
}
项目:Cauldron    文件:WorldManager.java   
public void destroyBlockPartially(int p_147587_1_, int p_147587_2_, int p_147587_3_, int p_147587_4_, int p_147587_5_)
{
    Iterator iterator = this.mcServer.getConfigurationManager().playerEntityList.iterator();

    while (iterator.hasNext())
    {
        EntityPlayerMP entityplayermp = (EntityPlayerMP)iterator.next();

        if (entityplayermp != null && entityplayermp.worldObj == this.theWorldServer && entityplayermp.getEntityId() != p_147587_1_)
        {
            double d0 = (double)p_147587_2_ - entityplayermp.posX;
            double d1 = (double)p_147587_3_ - entityplayermp.posY;
            double d2 = (double)p_147587_4_ - entityplayermp.posZ;

            if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D)
            {
                entityplayermp.playerNetServerHandler.sendPacket(new S25PacketBlockBreakAnim(p_147587_1_, p_147587_2_, p_147587_3_, p_147587_4_, p_147587_5_));
            }
        }
    }
}
项目:Cauldron    文件:WorldManager.java   
public void destroyBlockPartially(int p_147587_1_, int p_147587_2_, int p_147587_3_, int p_147587_4_, int p_147587_5_)
{
    Iterator iterator = this.mcServer.getConfigurationManager().playerEntityList.iterator();

    while (iterator.hasNext())
    {
        EntityPlayerMP entityplayermp = (EntityPlayerMP)iterator.next();

        if (entityplayermp != null && entityplayermp.worldObj == this.theWorldServer && entityplayermp.getEntityId() != p_147587_1_)
        {
            double d0 = (double)p_147587_2_ - entityplayermp.posX;
            double d1 = (double)p_147587_3_ - entityplayermp.posY;
            double d2 = (double)p_147587_4_ - entityplayermp.posZ;

            if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D)
            {
                entityplayermp.playerNetServerHandler.sendPacket(new S25PacketBlockBreakAnim(p_147587_1_, p_147587_2_, p_147587_3_, p_147587_4_, p_147587_5_));
            }
        }
    }
}
项目:DecompiledMinecraft    文件:NetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
 */
public void handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    this.gameController.theWorld.sendBlockBreakProgress(packetIn.getBreakerId(), packetIn.getPosition(), packetIn.getProgress());
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
 */
public void handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    this.gameController.theWorld.sendBlockBreakProgress(packetIn.getBreakerId(), packetIn.getPosition(), packetIn.getProgress());
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with
 * destroyBlockInWorldPartially
 */
public void handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn) {
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    this.gameController.theWorld.sendBlockBreakProgress(packetIn.getBreakerId(), packetIn.getPosition(),
            packetIn.getProgress());
}
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
 */
public void handleBlockBreakAnim(S25PacketBlockBreakAnim p_147294_1_)
{
    this.gameController.theWorld.destroyBlockInWorldPartially(p_147294_1_.func_148845_c(), p_147294_1_.func_148844_d(), p_147294_1_.func_148843_e(), p_147294_1_.func_148842_f(), p_147294_1_.func_148846_g());
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleBlockBreakAnim(S25PacketBlockBreakAnim p_147294_1_)
{
    this.gameController.theWorld.destroyBlockInWorldPartially(p_147294_1_.func_148845_c(), p_147294_1_.func_148844_d(), p_147294_1_.func_148843_e(), p_147294_1_.func_148842_f(), p_147294_1_.func_148846_g());
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleBlockBreakAnim(S25PacketBlockBreakAnim p_147294_1_)
{
    this.gameController.theWorld.destroyBlockInWorldPartially(p_147294_1_.func_148845_c(), p_147294_1_.func_148844_d(), p_147294_1_.func_148843_e(), p_147294_1_.func_148842_f(), p_147294_1_.func_148846_g());
}
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
 */
void handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
 */
void handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
 */
void handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
 */
void handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayClient.java   
/**
 * Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
 */
void handleBlockBreakAnim(S25PacketBlockBreakAnim var1);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleBlockBreakAnim(S25PacketBlockBreakAnim p_147294_1_);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleBlockBreakAnim(S25PacketBlockBreakAnim p_147294_1_);