Package net.minecraft.network.play.client

Examples of net.minecraft.network.play.client.C07PacketPlayerDigging


                                                {
                                                    INetHandler handler = FMLClientHandler.instance().getClientPlayHandler();
                                                    if (handler != null && handler instanceof NetHandlerPlayClient)
                                                    {
                                                        NetHandlerPlayClient handlerClient = (NetHandlerPlayClient) handler;
                                                        handlerClient.addToSendQueue(new C07PacketPlayerDigging(0, x, y, z, Minecraft.getMinecraft().objectMouseOver.sideHit));
                                                        handlerClient.addToSendQueue(new C07PacketPlayerDigging(2, x, y, z, Minecraft.getMinecraft().objectMouseOver.sideHit));
                                                    }
                                                }

                                                if (localHardness > 0f)
                                                    onBlockDestroyed(stack, world, localBlock, xPos, yPos, zPos, player);
View Full Code Here


            }
            pcmp.onPlayerDestroyBlock(x, y, z, sidehit);

            // send an update to the server, so we get an update back
            if(PHConstruct.extraBlockUpdates)
                Minecraft.getMinecraft().getNetHandler().addToSendQueue(new C07PacketPlayerDigging(2, x,y,z, Minecraft.getMinecraft().objectMouseOver.sideHit));
        }
    }
View Full Code Here

TOP

Related Classes of net.minecraft.network.play.client.C07PacketPlayerDigging

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.