Exemplo n.º 1
0
        /// <summary>
        /// Do not make give this method the name canInteractWith because it clashes with Container
        /// </summary>
        public virtual bool IsUseableByPlayer(EntityPlayer par1EntityPlayer)
        {
            if (Player.IsDead)
            {
                return(false);
            }

            return(par1EntityPlayer.GetDistanceSqToEntity(Player) <= 64D);
        }