EntityLivingBase.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:DecompiledMinecraft 作者:
/**
 * Swings the item the player is holding.
 */
public void swingItem()
{
    if (!this.isSwingInProgress || this.swingProgressInt >= this.getArmSwingAnimationEnd() / 2 || this.swingProgressInt < 0)
    {
        this.swingProgressInt = -1;
        this.isSwingInProgress = true;

        if (this.worldObj instanceof WorldServer)
        {
            ((WorldServer)this.worldObj).getEntityTracker().sendToAllTrackingEntity(this, new S0BPacketAnimation(this, 0));
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号