Java Code Examples for net.minecraft.entity.player.EntityPlayer.stopUsingItem()

The following are Jave code examples for showing how to use stopUsingItem() of the net.minecraft.entity.player.EntityPlayer class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: DecompiledMinecraft   File: PlayerControllerMP.java   View Source Code Vote up 4 votes
public void onStoppedUsingItem(EntityPlayer playerIn)
{
    this.syncCurrentPlayItem();
    this.netClientHandler.addToSendQueue(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
    playerIn.stopUsingItem();
}
 
Example 2
Project: BaseClient   File: PlayerControllerMP.java   View Source Code Vote up 4 votes
public void onStoppedUsingItem(EntityPlayer playerIn)
{
    this.syncCurrentPlayItem();
    this.netClientHandler.addToSendQueue(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
    playerIn.stopUsingItem();
}
 
Example 3
Project: BaseClient   File: PlayerControllerMP.java   View Source Code Vote up 4 votes
public void onStoppedUsingItem(EntityPlayer playerIn)
{
    this.syncCurrentPlayItem();
    this.netClientHandler.addToSendQueue(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
    playerIn.stopUsingItem();
}